Skip to content

Commit a22979c

Browse files
committed
feat(markdown): replace figure plugin with footnote
1 parent acb9c1c commit a22979c

File tree

4 files changed

+52
-18
lines changed

4 files changed

+52
-18
lines changed

docs/.vitepress/config.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from "vitepress";
22
import { imgMark } from "@mdit/plugin-img-mark";
3-
import { figure } from "@mdit/plugin-figure";
3+
import { footnote } from "@mdit/plugin-footnote";
44

55
// https://vitepress.dev/reference/site-config
66
export default defineConfig({
@@ -40,7 +40,7 @@ export default defineConfig({
4040
markdown: {
4141
config: (md) => {
4242
md.use(imgMark);
43-
md.use(figure);
43+
md.use(footnote);
4444
},
4545
},
4646

docs/index.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What is Semantic HTML
44

5-
_Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in web pages and web applications rather than merely to define its presentation or look. Semantic HTML is processed by traditional web browsers as well as by many other user agents. <abbr title="Cascading Style Sheets">CSS</abbr> is used to suggest its presentation to human users.[¹](#wikipedia) Semantic means "relating to meaning". Writing semantic HTML means using HTML elements to structure your content based on each element's meaning, not its appearance.[²](#webdev)_
5+
_Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in web pages and web applications rather than merely to define its presentation or look. Semantic HTML is processed by traditional web browsers as well as by many other user agents. <abbr title="Cascading Style Sheets">CSS</abbr> is used to suggest its presentation to human users.[^wikipedia] Semantic means "relating to meaning". Writing semantic HTML means using HTML elements to structure your content based on each element's meaning, not its appearance. [^webdev]_
66

77
## Why is it important?
88

@@ -43,7 +43,5 @@ As the web evolves towards cleaner and more structured code, Semantic HTML plays
4343
- [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Glossary/Semantics#semantics_in_html)
4444
</section>
4545

46-
---
47-
48-
- ¹ - https://en.wikipedia.org/wiki/Semantic_HTML { #wikipedia }
49-
- ² - https://web.dev/learn/html/semantic-html/ { #webdev }
46+
[^wikipedia]: https://en.wikipedia.org/wiki/Semantic_HTML
47+
[^webdev]: https://web.dev/learn/html/semantic-html/

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"format": "prettier --write ."
77
},
88
"dependencies": {
9-
"@mdit/plugin-figure": "^0.12.0",
9+
"@mdit/plugin-footnote": "^0.12.0",
1010
"@mdit/plugin-img-mark": "^0.12.0",
1111
"aplos": "2.1.0",
1212
"prettier": "^3.3.2"

pnpm-lock.yaml

+46-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)