1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 06:17:55 +01:00
tldr/pages/common/cmark.md

20 lines
377 B
Markdown
Raw Normal View History

2018-05-06 05:56:21 +02:00
# cmark
> Converts CommonMark Markdown formatted text to other formats.
- 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}}`