From 64c5f156025d2897a18f772df44a11b41d42cc1e Mon Sep 17 00:00:00 2001 From: vimux Date: Mon, 25 Feb 2019 08:10:55 -0500 Subject: [PATCH] Add MathJax example post --- exampleSite/content/post/mathjax.md | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 exampleSite/content/post/mathjax.md diff --git a/exampleSite/content/post/mathjax.md b/exampleSite/content/post/mathjax.md new file mode 100644 index 0000000..0f7b4e0 --- /dev/null +++ b/exampleSite/content/post/mathjax.md @@ -0,0 +1,43 @@ +--- +title: MathJax +description: Simple MathJax example test article +date: 2019-01-13 +mathjax: true +tags: + - "MathJax" +--- + +MathJax JavaScript library allows you to include mathematics in your web pages for viewing in any modern browser. + + +## How to enable MathJax + +For enabling MathJax, add this to your content's frontmatter: + +```yaml +mathjax: true +``` + +## MathJax example + +**Input**: + +``` +When \\( a \ne 0 \\), there are two solutions to + +$$ ax^2 + bx + c = 0 $$ + +and they are: + +\\[ x = {-b \pm \sqrt{b^2-4ac} \over 2a} \\] +``` + +**Output**: + +When \\( a \ne 0 \\), there are two solutions to + +$$ ax^2 + bx + c = 0 $$ + +and they are: + +\\[ x = {-b \pm \sqrt{b^2-4ac} \over 2a} \\]