typogr()
Params:
-
content {string}
src/filters/type.js
typogr()
content
{string}
md()
Block markdown with typesetting
content
{string}
mdInline()
Inline markdown with typesetting
content
{string}
elide()
Elide HTML at a given word count,
and append …
if elided.
html
{string}
count
{Number}
= 50
stripTagsForRSS()
Remove permalinks from headings
html
{string}
h()
Generate a heading at any given level
content
{string}
level
{Number (1-6)}
attrs
{object}
callout()
Add callout boxes for highlighted content,
e.g. {% callout type, label %}content{% endcallout %}
content
{markdown string}
type
{string}
= note
The primary expected values are ‘note’ or ‘warn’, though we currently only have styling for ‘note’ callouts.
label
{string | boolean}
= true
true
label will default to
‘Note’ when the type is ‘note’,
‘Warning’ when the type is ‘warn’,
and otherwise the type as given.