Skip to content

Commit

Permalink
Markdown: Fixed typo in token name (#3101)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Oct 5, 2021
1 parent 5138252 commit 00f77a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/prism-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
greedy: true,
inside: {
'punctuation': /^---|---$/,
'font-matter': {
'front-matter': {
pattern: /\S+(?:\s+\S+)*/,
alias: ['yaml', 'language-yaml'],
inside: Prism.languages.yaml
Expand Down
2 changes: 1 addition & 1 deletion components/prism-markdown.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/languages/markdown/front-matter-block_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ normal paragraph
[
["front-matter-block", [
["punctuation", "---"],
["font-matter", "layout: post\r\ntitle: Blogging Like a Hacker"],
["front-matter", "layout: post\r\ntitle: Blogging Like a Hacker"],
["punctuation", "---"]
]],

Expand All @@ -28,4 +28,4 @@ normal paragraph
"\r\nnormal paragraph\r\n\r\n",

["hr", "---"]
]
]
2 changes: 1 addition & 1 deletion tests/languages/yaml+markdown/front-matter_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Blogging Like a Hacker
[
["front-matter-block", [
["punctuation", "---"],
["font-matter", [
["front-matter", [
["key", "layout"], ["punctuation", ":"], " post\r\n",
["key", "title"], ["punctuation", ":"], " Blogging Like a Hacker"
]],
Expand Down

0 comments on commit 00f77a2

Please sign in to comment.