Skip to main content

pandoc-svgbob-filter

Pandoc filter to render svgbob

Requirements

This filter requires svgbob and rsvg-convert in $PATH

Install

install by pip-git:

$ pip3 install git+https://github.com/pandocker/pandoc-svgbob-filter.git

Options

Reference svgbob help (svgbob --help)

svgbob 0.3.2
SvgBobRus is an ascii to svg converter

USAGE:
    svgbob [FLAGS] [OPTIONS] [input] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -s               parse an inline string
    -V, --version    Prints version information

OPTIONS:
        --font-family <font-family>      text will be rendered with this font (default: 'arial')
        --font-size <font-size>          text will be rendered with this font size (default: 14)
    -o, --output <output>                where to write svg output [default: STDOUT]
        --scale <scale>                  scale the entire svg (dimensions, font size, stroke width) by this factor
                                         (default: 1)
        --stroke-width <stroke-width>    stroke width for all lines (default: 2)

ARGS:
    <input>    svgbob text file or inline string to parse [default: STDIN]

SUBCOMMANDS:
    build    Batch convert files to svg.
    help     Prints this message or the help of the given subcommand(s)

Filter options inherits options for svgbob itself. They are applied as attributes or preset by setting metadata

Filter option yaml metadata Description default value
font-family svgbob.font-family Text will be rendered with this font "Arial"
font-size svgbob.size text will be rendered with this font size 14
scale svgbob.scale scale the entire svg (dimensions, font size, stroke width) by this factor 1
stroke-width svgbob.stroke-width stroke width for all lines 2

Sample Markdown

---
# YAML frontmatter
svgbob:
  font-family: "Source Code Pro"
#  font-size: 12
#  scale: 2
#  stroke-width: 3
...

[Example](bob.bob){.svgbob font-size=14 stroke-width=2 scale=3}

Example{.svgbob font-size=14 stroke-width=2 scale=3}

Usage example

pandoc README.md -F pandoc-svgbob-filter -o README.html

Build svgbob binary (when updated)

$ git clone https://github.com/pandocker/pandoc-svgbob-filter.git
$ cd pandoc-svgbob-filter
$ make svgbob
# builds binary under "svgbob" directory

Metadata

Release files for pandoc-svgbob-filter 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandoc-svgbob-filter 0.0.3
File Size Uploaded
pandoc_svgbob_filter-0.0.3.tar.gz 3.5 MB Details

Release files / pandoc_svgbob_filter-0.0.3.tar.gz

Download URL pandoc_svgbob_filter-0.0.3.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
ad36759afd4cf86a6d523b77d808794eb7ceca9fc819d74ba7ace12b7eff30b7
BLAKE2b-256 checksum
How to use checksums
5bb3e56bd24933e2de2ad74179539b9415b4b49d15d72b83a54f0d07502486bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page