Skip to content

Commit 00f77a2

Browse files
Markdown: Fixed typo in token name (#3101)
1 parent 5138252 commit 00f77a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

components/prism-markdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
greedy: true,
3333
inside: {
3434
'punctuation': /^---|---$/,
35-
'font-matter': {
35+
'front-matter': {
3636
pattern: /\S+(?:\s+\S+)*/,
3737
alias: ['yaml', 'language-yaml'],
3838
inside: Prism.languages.yaml

components/prism-markdown.min.js

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

tests/languages/markdown/front-matter-block_feature.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ normal paragraph
1515
[
1616
["front-matter-block", [
1717
["punctuation", "---"],
18-
["font-matter", "layout: post\r\ntitle: Blogging Like a Hacker"],
18+
["front-matter", "layout: post\r\ntitle: Blogging Like a Hacker"],
1919
["punctuation", "---"]
2020
]],
2121

@@ -28,4 +28,4 @@ normal paragraph
2828
"\r\nnormal paragraph\r\n\r\n",
2929

3030
["hr", "---"]
31-
]
31+
]

tests/languages/yaml+markdown/front-matter_feature.test

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: Blogging Like a Hacker
1010
[
1111
["front-matter-block", [
1212
["punctuation", "---"],
13-
["font-matter", [
13+
["front-matter", [
1414
["key", "layout"], ["punctuation", ":"], " post\r\n",
1515
["key", "title"], ["punctuation", ":"], " Blogging Like a Hacker"
1616
]],

0 commit comments

Comments
 (0)