用于呈现svgbob图的pandoc过滤器
pandoc-svgbob-filter的Python项目详细描述
pandoc svgbob过滤器
用于渲染svgbob的pandoc过滤器
要求
此筛选器需要svgbob
和rsvg-convert
in $PATH
安装
通过pip git安装:
$ pip3 install git+https://github.com/pandocker/pandoc-svgbob-filter.git
样本
[Example](bob.bob){.svgbob font-family="Source Code Pro" font-size=14 stroke-width=2 scale=3}
Example{.svgbob}
选项
Option | Description | default value |
---|---|---|
^{ | Text will be rendered with this font | "Arial" |
^{ | text will be rendered with this font size | 14 |
^{ | scale the entire svg (dimensions, font size, stroke width) by this factor | 1 |
^{ | stroke width for all lines | 2 |
用法示例
pandoc README.md -F pandoc-svgbob-filter -o README.html