initial math, and other things
This commit is contained in:
parent
594b9ae2d2
commit
48eb7840b3
9 changed files with 91 additions and 26 deletions
|
@ -127,16 +127,19 @@ widget = "insert_html"
|
|||
html = '<meta name="generator" content="soupault">'
|
||||
selector = "head"
|
||||
|
||||
# <blink> elements are evil, delete them all
|
||||
[widgets.no-blink]
|
||||
widget = "delete_element"
|
||||
selector = "blink"
|
||||
|
||||
# By default this widget deletes all elements matching the selector,
|
||||
# but you can set this option to false to delete just the first one
|
||||
delete_all = true
|
||||
|
||||
[widgets.syntax]
|
||||
widget = "preprocess_element"
|
||||
selector = 'pre code'
|
||||
command = "./syntax_wrapper.sh ${ATTR_CLASS##*-}"
|
||||
|
||||
[widgets.math-inline]
|
||||
widget = "preprocess_element"
|
||||
selector = "span.math.inline"
|
||||
command = "sed -E 's/^\\\\\\((.*)\\\\\\)$/\\1/' | katex --format mathml"
|
||||
action = "replace_element"
|
||||
|
||||
[widgets.math-display]
|
||||
widget = "preprocess_element"
|
||||
selector = "span.math.display"
|
||||
command = "sed -E 's/^\\\\\\[(.*)\\\\\\]$/\\1/' | katex -d --fleqn --format mathml"
|
||||
action = "replace_element"
|
Loading…
Add table
Add a link
Reference in a new issue