simple_markdown_extension_blueprint v0.2.0 SimpleMarkdownExtensionBlueprint
Adds syntax for issuing a blueprint command and embedding the resulting SVG.
The command takes the form of @blueprint[] or @blueprint(). Where inside the brackets are the arguments that can be passed to a blueprint escript. The @blueprint prefix may optionally be followed by options separated by a - to customize how it should be added to the page.
These options are:
- Overriding the width of the element that comes after it, by providing a
wbefore the literal to be used for the width (where no literal means it will use the default pixel width). e.g. If it comes before the[]it will affect the width of the SVG element, whereas if it comes before anembedoption it will affect the width of the container. - Overriding the height of the element that comes after it, by providing a
hbefore the literal to be used for the height (where no literal means it will use the default pixel height). e.g. If it comes before the[]it will affect the height of the SVG element, whereas if it comes before anembedoption it will affect the height of the container. - Place the SVG in a scrollable container, by providing the
embedoption.
Example
@blueprint[plot app --messages --colour]Which produces:
Fixed size example
@blueprint-w300px-h50px[plot app --messages --colour]Which produces:
Relative size example
@blueprint-w50%-h50%[plot app --messages --colour]Which produces:
Embed example
@blueprint-embed[plot app --messages --colour]Which produces:
Fixed size embed with relative size example
@blueprint-w100px-h50px-embed-w500%-h500%[plot app --messages --colour]Which produces:
Link to this section Summary
Functions
Insert the blueprint command rule in a appropriate place in the rule parser
The rule for matching blueprint commands
Link to this section Functions
Insert the blueprint command rule in a appropriate place in the rule parser.
The rule for matching blueprint commands.