From 62ae83b7513c2c6c8bd857b7ed5f9f2f47512b43 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Sat, 25 Jul 2020 18:20:25 +0800 Subject: Update LaTeX shortcode --- layouts/shortcodes/math.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 layouts/shortcodes/math.html (limited to 'layouts/shortcodes') diff --git a/layouts/shortcodes/math.html b/layouts/shortcodes/math.html new file mode 100644 index 0000000..3fcdaa7 --- /dev/null +++ b/layouts/shortcodes/math.html @@ -0,0 +1,5 @@ +{{ if len .Params | eq 1 }} +\( {{- trim .Inner "\n" -}} \) +{{ else }} +$$ {{- trim .Inner "\n" -}} $$ +{{ end }} \ No newline at end of file -- cgit v1.2.3