tldr/pages/common/cmark.md

21 lines
436 B
Markdown
Raw Normal View History

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
- Render a Commonmark Markdown file to HTML:
`cmark --to html {{filename.md}}`
2021-04-06 13:16:08 +01:00
- Convert data from standard input 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}}`
- Validate utf8 characters:
`cmark --validate-utf8 {{filename.md}}`