Commit Graph

69 Commits

Author SHA1 Message Date
João Moreno
f6ec9aa2e6 bump katex (#238271) 2025-01-20 10:39:21 +01:00
Matt Bierner
5980b0f835 Pick up latest markdown-it-katex 2024-12-12 14:46:28 -08:00
Robo
9494a89080 chore: add npmrc to extensions folder (#230214) 2024-10-01 12:43:01 +02:00
hj
88d7b97c93 chore: rm unreached ignore items when build extensions. (#227906)
chore: rm unreached ignore items when compiling extensions.
2024-09-09 10:32:51 +00:00
Robo
b5a6aa14a8 feat: switch to npm as default package manager (#226927)
* feat: move from yarn to npm

* chore: skip yarn.lock files

* fix: playwright download

* chore: fix compile and hygiene

* chore: bump vsce@2.17.0

Refs 8b49e9dfdf

* test: update results for bat and sh colorizer tests

* fix: add missing lock files for windows

* fix: switch to legacy-peer-deps

* chore: update markdown-it@14.1.0

Refs 737c95a129

esbuild step in extensions-ci-pr was previously using markdown-it
from root which had userland punycode and was able to compile successfully.

* ci: increase pr timeout for windows integration tests

* chore: fix product build

* build: ignore extension dev dependency for rcedit

* build: fix working directory inside container

* build: fix dependency generation

* npm: update dependencies

* ci: use global npmrc

* ci: update cache

* ci: setup global npmrc for private npm auth

* build: fix extension bundling

* chore: sync npm dependencies

* ci: debug env variables for container

* ci: fix win32 cli pipeline

* build: fix npmrc config usage for build/ and remote/ dirs

* fix: windows build

* fix: container builds

* fix: markdown-language-features tests and bundling

```
[03:58:22] Error: Command failed: /Users/demohan/.nvm/versions/node/v20.15.1/bin/node /Users/demohan/github/vscode/extensions/markdown-language-features/esbuild-notebook.js --outputRoot /Users/demohan/github/vscode/.build/extensions/markdown-language-features
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds userland package based on beed9aee2c

* fix: container builds for distro

* chore: update yarn occurrences

* fixup! chore: bump vsce@2.17.0

Uses the closest version to `main` branch that does not
include d3cc84cdec
while still having the fix 8b49e9dfdf

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: sync npm dependencies

* chore: throw error when yarn is used for installation

* chore: add review feedback

* chore: switch exec => run where needed

* chore: npm sync dependencies

* fix: markdown-language-features bundling

```
✘ [ERROR] Could not resolve "punycode"

    extensions/markdown-language-features/node_modules/markdown-it/lib/index.js:14:27:
      14 │ var punycode     = require('punycode');
         ╵                            ~~~~~~~~~~

  The package "punycode" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
```

Adds missing userland package based on markdown-it/markdown-it@beed9ae,
can be removed once we update markdown-it >= 14.1.0

* ci: rename no-yarn-lock-changes.yml

* chore: sync npm dependencies

* ci: restore no-yarn-lock-changes.yml

We can disable it in a separate PR to keep the required
checks happy and also need workflow edit perms.

* chore: sync npm dependencies

* ci: rebuild cache

* ci: fix no-package-lock-changes.yml

* chore: bump distro

* chore: rm yarn.lock files

* chore: rm yarn.lock files without dependencies

* chore: add vscode-selfhost-import-aid to postinstall dirs

* chore: bump distro
2024-09-06 22:18:02 +09:00
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
Matt Bierner
cef334b38c Enable rendering of math fenced code blocks (#219820)
Fixes #174731
2024-07-11 11:53:56 -07:00
Raymond Zhao
e483d8407c chore: bump katex (#209141) 2024-03-29 21:07:15 +01:00
Matt Bierner
0e51e71619 Pick up latest katex (#202776) 2024-01-18 15:18:39 -08:00
Sandeep Somavarapu
1e0580ec23 Use categories for builtin extensions groups (#202453)
* support grouping of extensions

* remove grouping

* reuse categories parsing

* cleanup

* fix tests
2024-01-14 18:19:29 +01:00
Matt Bierner
afbec2027b Fix markdown-it-katex error (#202393) 2024-01-12 18:46:08 -08:00
Matt Bierner
39e866b964 Pick up latest markdown-it-katex (#202178) 2024-01-10 19:04:33 +01:00
AlbertHilb
2929ec4996 Add macros entry to markdown-math configuration (#180458)
section.
2023-06-20 23:31:26 +02:00
Matt Bierner
5a55352cf7 Combine esbuild scripts (#184531)
* Combine esbuild scripts

This combines the various build scripts used for building webview/notebook content. This should make it easier to update settings for them

As part of this, I also fixed the script so that on watch it restarts automatically on syntax errors instead of exiting

* Migrate other build script

* Fixing math build script
2023-06-09 14:55:05 -07: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
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