Linux command
markdown 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Convert Markdown to HTML
markdown [file.md]
Convert from stdin
echo "# Hello" | markdown
Output to file
markdown [file.md] > [file.html]
说明
markdown converts Markdown-formatted text to HTML. It implements the original Markdown specification created by John Gruber. Markdown allows writing in plain text with simple formatting that converts to structured HTML.
参数
- --html4tags
- Use XHTML-style empty tags.
- --version
- Show version.
- --help
- Show help.
FAQ
What is the markdown command used for?
markdown converts Markdown-formatted text to HTML. It implements the original Markdown specification created by John Gruber. Markdown allows writing in plain text with simple formatting that converts to structured HTML.
How do I run a basic markdown example?
Run `markdown [file.md]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --html4tags do in markdown?
Use XHTML-style empty tags.