table | image | code | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
markpaper是一个将markdown@[[https://en.wikipedia.org/wiki/Markdown ]]转换成html或docx格式的小工具,提供了给标题、图、表、代码编号的功能,并且可以使用YAML@[[https://yaml.org/ ]]进行样式配置,可以用于输出格式标准的论文或报告。
markpaper提供了与markdown相似的语法,具体区别如@table[[与markdown的区别]]所示。 @table(name="与markdown的区别")
除了部分兼容markdown的语法外,还提供了用于标记引用的语法:
另外还提供了一个宏语法,使用 用户可在markdown的最前面插入yaml frontmatter@[[https://docs.zettlr.com/en/core/yaml-frontmatter/ ]],定义多种元素的样式,具体内容如@table[[元素列表]]所示。 @table(name="元素列表")
可配置的属性列表如@table[[属性列表]]所示,所有的样式属性html都支持,docx部分支持。 @table(name="属性列表")
*: 采用的单位为pt(磅) 另外对于标签类和标题类的元素,还提供了一个format属性,用于配置输出格式。可以选用的占位符有:
如果用户没有提供对应元素的样式,那么markpaper会采用默认样式,见@code[[默认样式]]。
html的转换效果见@image[[html转换效果]],docx的转换效果见@image[[docx转换效果]]。 |
-
Notifications
You must be signed in to change notification settings - Fork 1
A tool to convert markdown into docx and html
License
HSwift/markpaper
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|