You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course, we could just go from docx to md using Pandoc. You can do that in R like:
rmarkdown::pandoc_convert(
docx_path,
to="markdown",
output="output.md",
options= c("--extract-media=.") # pull images out (but not charts?)
)
But Pandoc doesn't support Govspeak directly.
We want more control over bespoke stuff like table formatting and anchor links for images (#8), for example. We also might want to warn users (#7) when they use inappropriate markup (e.g. italics shouldn't be used). Govspeak is quite simple, so converting the unzipped docx to an md with our limited markup requirements shouldn't be too tedious.
The text was updated successfully, but these errors were encountered:
Of course, we could just go from docx to md using Pandoc. You can do that in R like:
But Pandoc doesn't support Govspeak directly.
We want more control over bespoke stuff like table formatting and anchor links for images (#8), for example. We also might want to warn users (#7) when they use inappropriate markup (e.g. italics shouldn't be used). Govspeak is quite simple, so converting the unzipped docx to an md with our limited markup requirements shouldn't be too tedious.
The text was updated successfully, but these errors were encountered: