logo
首页技术栈工具库讨论
submark

submark

[Index] Static link Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info For package maintainers and hackage trustees submark is a CLI program to extract some particular section from a givne CommonMark/Markdown document. I use it for myself to extract the latest version section from the CHANGELOG.md file, and then reuse the text for the corresponding release note on GitHub releases, during automated release process which is run on CI. The following examples use John Gruber's original Markdown introduction: Extracting an H3 heading Command-Line: Note that its textual style differ from the original text. Since submark internally builds an abstract syntax tree from the given input text and then render again the result tree, it doesn't maintain trivial styles (e.g., whitespaces, ATX vs. Setext headings) but only the semantics. There are options from --h1 to --h6: The leading heading can be omitted: By Unix convention, - means pipe: There's -o/--out-file option as well:
由 
bruceshi2021-01-13 收录
--
推荐
不推荐
更多信息
GitHub icondahlia/submark2
HACKAGE
carbal install submark
查看
标签
根据用户添加的标签生成
暂无标签