Compare commits

...

2 Commits

@ -64,6 +64,9 @@ docker-run:
.PHONY: install-deps .PHONY: install-deps
install-deps: install-deps:
npm install npm install
.PHONY: install-test-deps
install-test-deps:
pip install -r src/python/requirements.txt pip install -r src/python/requirements.txt
.PHONY: run .PHONY: run

@ -27,7 +27,7 @@ func init() {
bmPolicy.AllowElements("style") bmPolicy.AllowElements("style")
bmPolicy.AllowAttrs("checked", "disabled", "type").OnElements("input") bmPolicy.AllowAttrs("checked", "disabled", "type").OnElements("input")
bmPolicy.AllowAttrs("width", "height", "align").OnElements("img") bmPolicy.AllowAttrs("width", "height", "align").OnElements("img")
bmPolicy.AllowAttrs("style", "class", "align").OnElements("span", "p", "div", "a") bmPolicy.AllowAttrs("style", "class", "align").OnElements("span", "p", "div", "a", "table", "tr", "td", "th")
md = goldmark.New( md = goldmark.New(
goldmark.WithExtensions(extension.GFM), goldmark.WithExtensions(extension.GFM),
goldmark.WithExtensions(mathjax.MathJax), goldmark.WithExtensions(mathjax.MathJax),

Loading…
Cancel
Save