From 2154d36d9993e128faaa6471cdae305cca3d810d Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Wed, 10 Jul 2024 00:20:13 +0000
Subject: [PATCH] chore: use regex flag instead of string in regexp ctor
---
docs/features/syntax highlighting.md | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/docs/features/syntax highlighting.md b/docs/features/syntax highlighting.md
index 16fef25..bf9baae 100644
--- a/docs/features/syntax highlighting.md
+++ b/docs/features/syntax highlighting.md
@@ -95,6 +95,16 @@
const [name, setName] = useState("Taylor")
```
+### Inline Highlighting
+
+Append {:lang} to the end of inline code to highlight it like a regular code block.
+
+```
+This is an array `[1, 2, 3]{:js}` of numbers 1 through 3.
+```
+
+This is an array `[1, 2, 3]{:js}` of numbers 1 through 3.
+
### Line numbers
Syntax highlighting has line numbers configured automatically. If you want to start line numbers at a specific number, useĀ `showLineNumbers{number}`:
--
Gitblit v1.10.0