mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
26 lines
511 B
Plaintext
26 lines
511 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cmark
|
|
|
|
> Convert CommonMark Markdown formatted text to other formats.
|
|
> More information: <https://manned.org/cmark>.
|
|
|
|
- Render a CommonMark Markdown file to HTML:
|
|
|
|
`cmark --to html {{filename.md}}`
|
|
|
|
- Convert data from `stdin` to LaTeX:
|
|
|
|
`cmark --to latex`
|
|
|
|
- Convert straight quotes to smart quotes:
|
|
|
|
`cmark --smart --to html {{filename.md}}`
|
|
|
|
- Validate UTF-8 characters:
|
|
|
|
`cmark --validate-utf8 {{filename.md}}`
|