2018-05-06 04:56:21 +01:00
|
|
|
# cmark
|
|
|
|
|
|
|
|
> Converts CommonMark Markdown formatted text to other formats.
|
2019-06-09 00:05:28 +01:00
|
|
|
> More information: <https://github.com/commonmark/cmark>.
|
2018-05-06 04:56:21 +01:00
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Render a CommonMark Markdown file to HTML:
|
2018-05-06 04:56:21 +01:00
|
|
|
|
|
|
|
`cmark --to html {{filename.md}}`
|
|
|
|
|
2023-08-09 06:29:02 +01:00
|
|
|
- Convert data from `stdin` to LaTeX:
|
2018-05-06 04:56:21 +01:00
|
|
|
|
|
|
|
`cmark --to latex`
|
|
|
|
|
|
|
|
- Convert straight quotes to smart quotes:
|
|
|
|
|
|
|
|
`cmark --smart --to html {{filename.md}}`
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
- Validate UTF-8 characters:
|
2018-05-06 04:56:21 +01:00
|
|
|
|
|
|
|
`cmark --validate-utf8 {{filename.md}}`
|