From 5fe849524a16c019b6ac201b0d9bcc65f7bc9bc8 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Mon, 24 Jul 2023 16:50:44 -0700 Subject: [PATCH] Add LaTeX syntax highlighting (#28144) --- .../first_steps/three_famous_mathematical_formulas/index.md | 2 +- .../en-us/mdn/writing_guidelines/howto/markdown_in_mdn/index.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md b/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md index 64a9a802f8e1831..8be770657aa89c4 100644 --- a/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md +++ b/files/en-us/learn/mathml/first_steps/three_famous_mathematical_formulas/index.md @@ -35,7 +35,7 @@ The goal is to rewrite the following math article using HTML and MathML: Although you don't need to be familiar with [LaTeX](https://en.wikipedia.org/wiki/LaTeX), it might be useful to know the LaTeX source from which it was generated: -``` +```latex \documentclass{article} \usepackage{amsmath} diff --git a/files/en-us/mdn/writing_guidelines/howto/markdown_in_mdn/index.md b/files/en-us/mdn/writing_guidelines/howto/markdown_in_mdn/index.md index 3dc51e8f26e2a6c..65c73f282bfc435 100644 --- a/files/en-us/mdn/writing_guidelines/howto/markdown_in_mdn/index.md +++ b/files/en-us/mdn/writing_guidelines/howto/markdown_in_mdn/index.md @@ -80,6 +80,7 @@ On MDN, writers will use code fences for example code blocks. They must specify - `xml` - XML - `mathml` - MathML - `md` - Markdown + - `latex` - LaTeX - Command Prompts - `sh` - Bash/Shell - `batch` - Batch (Windows Shell)