Commit Graph

55 Commits

Author SHA1 Message Date
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
Matt Bierner
845a39b5ec Switch to published markdown-it-katex package (#172956)
Fixes #172945
2023-01-31 13:02:35 -08:00
Matt Bierner
191303d67c Pick up latest katex with older version number (#172323)
Pulls in 88f39cedd3
2023-01-24 16:48:25 -08:00
Matt Bierner
116d314e60 Fix watch script exiting on error (#171552) 2023-01-17 14:53:24 -08:00
Matt Bierner
5c755adaea Pick up more fixes for markdown-katex (#168678)
Fixes #149593
2022-12-14 16:57:21 -08:00
Matt Bierner
a9e4a0f0ed Pick up latest markdown-it katex (#168673)
Fixes #138970
2022-12-10 00:26:06 +01:00
Matt Bierner
c0f6c67a09 Pick up latest markdown-it katex (#168269)
For #149295
2022-12-07 06:00:11 +01:00
Ping
7fbec6dcc9 Fix KaTeX equation numbering in notebook preview (#156276)
Fixes https://github.com/microsoft/vscode/issues/155888
2022-11-02 01:09:32 -07:00
Matt Bierner
15c111eb21 Pick up latest katex (#163866)
Fixes #162379
2022-10-17 14:09:09 -04:00
Logan Ramos
a20329d291 Switch extensions to 1DS (#154299)
* Move extensions to 1DS

* Switch extensions to 1DS
2022-07-06 17:18:41 -07:00
Matt Bierner
ad9675f099 Scaffold out basic markdown language server (#154293)
* Scaffold out basic markdown lsp

This scaffolds out a new markdown language server and then uses it to implement document symbols. After the change, the markdown extension will have the following structure:

- languageService — Where all the LSP language stuff will eventually land
- server — The actual language server. Consumes ` languageService`
- src — The current extension that launches the server and implements VS Code specific functions

* Adding build scripts

* a

* Use language service from github

* Remove ls build scripts

* Bump versions

* Only build ext

* Enable for web

* Fixing for browser
2022-07-06 16:03:24 -07:00
Matt Bierner
0b3574dcef Update id of markdown-it renderer (#153876)
Fixes #153873
2022-06-30 23:19:49 +00:00
Matt Bierner
0ee05bb617 Pick up latest markdown-it-katex (#149978)
Fixes #149682
2022-05-19 21:54:08 +00:00
Matt Bierner
a00e138040 Changing dependency syntax for markdown-it-katex (#149962)
Fixes #149291
2022-05-19 18:25:45 +00:00
Matt Bierner
c9240437a5 Pull in latest markdown-it-katex (#148845)
Fixes #147043
2022-05-05 21:10:52 +00:00
AlbertHilb
7e6b007dd5 Pass one shared macros object into every call to katex renderer (#148006)
* Pass one shared `macros` object into every call to katex
renderer.

* Reset the `macros` object at each new
re-rendering.
2022-05-02 09:45:06 -07:00
Matt Bierner
2edb9bc9ca Reapply parcel/watcher adoption
Revert "Revert e7fffbf1c9169087f1098aedfe54c59c079fa3ac"

This reverts commit 6786b0ad7d.

Two changes:

- Lazy import parcel/watcher
- Add `@parcel/watcher` as a dev dep in extensions folder so that we pull in correct version for build os
2022-03-24 14:13:39 -07:00
Dirk Baeumer
6786b0ad7d Revert e7fffbf1c9 2022-03-24 09:04:05 +01:00
Matt Bierner
e7fffbf1c9 Use parcel for watching esbuild build files
Seeing small but consistent cpu usage when using esbuild's watcher. Switch to parcel to avoid this
2022-03-23 14:49:59 -07:00
Matt Bierner
5f5a917796 Remove test file 2022-03-23 14:49:59 -07:00
Matt Bierner
eaf352e6d1 Hook up watch properly for extension build scripts 2022-03-08 17:54:16 -08:00
Matt Bierner
24c814dd01 Only ship woff2 fonts for math support
Fixes #143372
2022-02-22 13:41:01 -08:00
Martin Aeschlimann
db9e8fba63 remove unecessary files in build 2022-02-18 20:38:55 +01:00
Matt Bierner
f343e8ef51 Allow bare math blocks with nested begin/ends
Fixes #141905
2022-02-03 16:03:20 -08:00
Matt Bierner
7987c49a08 Use latex as language mode inside markdown math blocks
Fixes #142022

We added simple latex language support recently, so use this instead of our old `markdown-math` language
2022-02-03 08:49:41 -08:00
Khaled
0dba492e01 Corrected the regex to detect espaced percent symbol (#139437) 2022-01-05 12:13:29 -08:00
Johannes Rieken
68e819043c use tsconfig.json#include for vscode.d.ts and vscode.proposed.d.ts, enables to remove most ref.d.ts-files 2021-11-09 15:53:35 +01:00
Johannes Rieken
9254a8cd27 move vscode.d.ts and vscode.proposed.d.ts into src/vscode-dts-folder, https://github.com/microsoft/vscode/issues/131165 2021-11-09 15:00:03 +01: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
8b688986b7 Enable rendering of bare math blocks in notebooks
Fixes #133390

Adds support for math blocks that just start with `\begin` instead of being wrapped in dollar signs
2021-10-11 19:08:44 -07:00
Matt Bierner
0ec3d48b70 Use @types/vscode-notebook-renderer 2021-08-30 13:54:39 -07:00
Rob Lourens
81a3dceec5 Fix #131113 2021-08-19 08:03:58 -07:00
Matt Bierner
affc733e4e Fix format errors from PR 2021-08-05 14:55:55 -07:00
Christopher Yeh
4a69c3dda7 Persist KaTeX macros across render calls (#129747)
* Use KaTeX "globalGroup" for markdown rendering

* Use KaTeX "globalGroup" for markdown rendering
2021-08-05 14:37:49 -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
dc54347a27 Exclude a few extra build files from build 2021-08-05 13:32:54 -07:00
Matt Bierner
b2142b93e0 Add katex style to root of notebook
Fixes #128490

This is needed to ensure the katex font-face is loaded properly

Seems like this is needed to work around a bug: https://bugs.chromium.org/p/chromium/issues/detail?id=336876
2021-08-03 21:46:16 -07:00
gregvanl
91ae221db4 Settings description typos 2021-07-26 11:47:38 -07:00
Matt Bierner
0e09ae9244 Don't include node types in markdown-math 2021-07-22 17:53:53 -07:00
Matt Bierner
3d2a28fcd8 Disable math highlighting in markdown fenced code blocks 2021-07-01 15:46:56 -07:00
Matt Bierner
cf2d68daba Add markdown math support readme
Fixes #127692
2021-07-01 10:18:50 -07:00
Matt Bierner
9d443dd8c4 Pull in copied katex css instead of node_modules 2021-06-29 22:37:19 -07:00
Matt Bierner
2ae31a96cf Add math grammar/language to markdown math blocks
Fixes #124719
2021-06-17 18:01:19 -07:00