Skip to content

Commit

Permalink
Fix wrong language scope in markdown inline math expression (#172957)
Browse files Browse the repository at this point in the history
Let 3rd matching group be an end

Previously, the first and third group was
defined as beginning. This is not
true as the first group of the regular
expression is the beginning of the math
inline markdown expression and the third
group the _end_. Once the third group is
correctly assigned, its language scope can
be changed accordingly.
  • Loading branch information
robincaloudis committed Feb 1, 2023
1 parent e02c6ad commit 63b07db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions/markdown-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.math.markdown": "latex"
"meta.embedded.math.markdown": "latex",
"punctuation.definition.math.end.markdown": "latex"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
]
},
"3": {
"name": "punctuation.definition.math.begin.markdown"
"name": "punctuation.definition.math.end.markdown"
}
}
},
Expand All @@ -49,7 +49,7 @@
]
},
"3": {
"name": "punctuation.definition.math.begin.markdown"
"name": "punctuation.definition.math.end.markdown"
}
}
},
Expand Down

0 comments on commit 63b07db

Please sign in to comment.