fix mermaid default font

This commit is contained in:
Robert Kaussow 2020-06-02 21:22:10 +02:00
parent ed3686684d
commit 5eb04b81d2
3 changed files with 7 additions and 12 deletions

View File

@ -1,12 +1,2 @@
* BREAKING
* use pre tag instead of p for mermaid shortcode
* BUGFIX * BUGFIX
* optimize resource loading * fix mermaid default font
* refactor expand shortcode to use valid html
* fix formatting of nested shortcodes markdown
* INTERNAL
* add markdown linting to CI (markdownlint-cli)
* add spellchecking to CI (spellcheck-cli)
* add html/css validation to CI (nu.validator)
* add page validation to CI (lighthouse-ci)
* add broken link check to CI (broken-link-checker)

View File

@ -11,6 +11,6 @@
{{ .Page.Scratch.Set "mermaid" true }} {{ .Page.Scratch.Set "mermaid" true }}
{{ end }} {{ end }}
<pre class="mermaid{{ with .Get "class" }} {{ . }}{{ end }}"> <pre class="gdoc-mermaid mermaid{{ with .Get "class" }} {{ . }}{{ end }}">
{{- .Inner -}} {{- .Inner -}}
</pre> </pre>

View File

@ -112,3 +112,8 @@
} }
} }
} }
// {{< mermaid >}}
.gdoc-mermaid {
font-family: "Liberation Sans", sans-serif;
}