tldr/pages/common/cmark.md

21 lines
437 B
Markdown
Raw Permalink 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:
2018-05-06 04:56:21 +01:00
`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 UTF-8 characters:
2018-05-06 04:56:21 +01:00
`cmark --validate-utf8 {{filename.md}}`