From 942a5128a0e4cb3ae2c9bce9b4e514c8b3efae83 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Sun, 23 Jul 2023 23:21:16 -0700 Subject: [PATCH] Add LaTeX syntax highlighting Depends on https://github.com/mdn/yari/pull/9366. --- .../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)