Detecting custom fonts in docx conversions #10987
Unanswered
andrew-danieli-fj
asked this question in
Q&A
Replies: 1 comment 2 replies
-
The styles extension won't detect fonts. You will need to apply styles to the relevant sections. These will then show up as divs or spans. So, in Word, create style named "my-code" or something and apply that to the text now in Courier New. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've just noticed that during the docx -> html conversion, text which was styled "Courier New" isn't taking the font style across to the output. I tried using
-f docx+styles
on the command line but can't tell if the extension is installed (the output doesn't change by the way). I'm using the latest version for windows, which according topandoc -v
returns:-Do I need to do anything special to get the extension working? As I'm trying to get an almost 1-2-1 match with the old "save as filtered html" generated by Word, I'd really like to find any "Courier New" text and convert it to a
Code
style which I can then tweak to match in my CSS style sheet.Beta Was this translation helpful? Give feedback.
All reactions