Commit Graph

14 Commits

Author SHA1 Message Date
aaronchucarroll
a35380d6f0 Adds support for Github-style fenced math blocks in markdown editor and preview (#213750)
* added support for markdown fenced math blocks

* original markdownEngine.ts

* Add fenced math block rendering to markdown-math

* Update dependencies

* custom parser for fenced math blocks

* custom parser for fenced math blocks

* reverted changes to extension.ts

* reverted all changes from prior implementations

* proper fence grammar implementation for math

---------

Co-authored-by: Matt Bierner <matb@microsoft.com>
2024-07-12 04:51:37 +00:00
robincaloudis
63b07dbd7f Fix wrong language scope in markdown inline math expression (#172957)
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.
2023-02-01 06:44:37 -08:00
Khaled
0dba492e01 Corrected the regex to detect espaced percent symbol (#139437) 2022-01-05 12:13:29 -08:00
Matt Bierner
b614fb5db8 Fix highlighting of dollar amount at start of line in md files
Fixes #136535
2021-11-08 17:53:52 -08:00
Matt Bierner
0eee604f01 Allow non-word character after inline math code block
Fixes #136584
2021-11-08 17:43:46 -08:00
Matt Bierner
17dc026824 Fix a few more cases of math block highlighting
Fixes #135254
2021-10-20 15:56:28 -07:00
Matt Bierner
c38d441d37 Make sure inline math is marked as markdown-math
For https://github.com/microsoft/vscode/issues/134893#issuecomment-947669488
2021-10-20 14:22:44 -07:00
Matt Bierner
3dc7b03ff9 Allow leading and trailing math on same line as math block
Fixes #134893
2021-10-20 14:17:46 -07:00
Matt Bierner
04f51add61 Disable markdown math inside of raw code blocks
For #135254
2021-10-20 13:29:28 -07:00
Matt Bierner
41df0673f8 Allow spaces in katex commands
Fixes #128411
2021-10-14 16:00:00 -07:00
Matt Bierner
a4eb4d6884 Update math fixture 2021-08-05 14:00:36 -07:00
Matt Bierner
f8cc75937a Fix syntax highlighting of math in markdown lists
Fixes #128411
2021-08-05 13:32:55 -07:00
Matt Bierner
3d2a28fcd8 Disable math highlighting in markdown fenced code blocks 2021-07-01 15:46:56 -07:00
Matt Bierner
2ae31a96cf Add math grammar/language to markdown math blocks
Fixes #124719
2021-06-17 18:01:19 -07:00