1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 09:02:08 +02:00
tldr/pages/common/cmark.md
2019-06-09 18:53:49 +02:00

20 lines
436 B
Markdown

# cmark
> Converts CommonMark Markdown formatted text to other formats.
> More information: <https://github.com/commonmark/cmark>.
- Render a Commonmark Markdown file to HTML:
`cmark --to html {{filename.md}}`
- Convert data from standard input to latex:
`cmark --to latex`
- Convert straight quotes to smart quotes:
`cmark --smart --to html {{filename.md}}`
- Validate utf8 characters:
`cmark --validate-utf8 {{filename.md}}`