tldr/pages/common/cmark.md

21 lines
430 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:
2018-05-06 04:56:21 +01:00
`cmark --to html {{filename.md}}`
- 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}}`
- Validate UTF-8 characters:
2018-05-06 04:56:21 +01:00
`cmark --validate-utf8 {{filename.md}}`