Matt Bierner
4d50e586ec
Improve morphing for vscode-docs
2021-11-03 20:54:20 -07:00
Alex Dima
a704a69394
Enforce that source code uses a small subset of Unicode
2021-11-03 23:34:41 +01:00
Kaan Genç
1aa9a712d1
Allow extensions to disable built-in markdown preview button ( #136273 )
...
* Allow extensions to disable built-in markdown preview button
Adds a flag for the "Open Preview to the Side" button displayed for markdown files. This makes it possible for extensions to hide this button when desired by setting the flag to true. For example, extensions can now use the following line to disable the preview button:
```js
vscode.commands.executeCommand("setContext", "hasCustomMarkdownView", true);
```
* update keyword for disabling default markdown preview
2021-11-03 14:49:44 -07:00
Matt Bierner
a046cfb481
Revert "Remove image stabilizer code"
...
This reverts commit 69e8e3c091263a2e00592cca06bf1dba96b70c7e.
2021-11-03 14:48:48 -07:00
Matt Bierner
1f3f74f4ea
Clear this._fileWatchersBySrc
2021-11-03 14:48:47 -07:00
Matt Bierner
86c446baee
Don't update icon path so much
...
We only need to update this on creation, never every time something changes
2021-11-03 14:48:47 -07:00
Matt Bierner
9c2b239e2e
Remove image stabilizer code
...
Should not be required with incremental dom updates
2021-11-03 14:48:46 -07:00
Matt Bierner
359cd4330d
clean up onDidChangeActiveTextEditor
...
Also fixes potential bug if line === 0
2021-11-03 14:48:46 -07:00
Matt Bierner
97e646c0da
Update preview if text document is reopened
...
Fixes #135568
2021-11-03 14:48:45 -07:00
Matt Bierner
7d46b77c31
Disable fuzzy links in md preview
...
Fixes #136198
2021-11-01 17:41:40 -07:00
Matt Bierner
fbc1f7df91
Fire event when md content is updated
...
For #136255
2021-11-01 17:41:39 -07:00
Matt Bierner
8f672cac62
Use morphdom to reduce number of full page updates to md preview
...
This should help improve scroll sync and also reduce the number of times we go out to the network if images are in the preview
2021-11-01 15:33:00 -07:00
Matt Bierner
a9bc0553f7
Support definition links with spaces
...
For #136073
2021-11-01 09:23:03 -07:00
Matt Bierner
7bc28074bf
Exclude tr from markdown hover
...
Fixes #135278
Fixes #135037
2021-10-18 17:13:44 -07:00
Matt Bierner
b7c340f119
Simplify import path
2021-10-14 09:32:35 -07:00
Matt Bierner
c986aef642
Remove .only and fix fragment used when opening file
...
Keeping the fragment causes a duplicated file to be opened
2021-10-13 19:33:56 -07:00
Matt Bierner
830987eac3
Refactor document link opening
...
- Extract out of command
- Try to preserve uri instead of converting to path
- Better handle case with absolute file path when there is no workspace
2021-10-13 19:27:35 -07:00
Matt Bierner
d1f72b5420
Try to clairify how md links are resolved
...
For #101203
The current logic ends up tossing out the uri scheme and other important info when opening md links. This PR tries to avoid that
2021-10-13 19:00:19 -07:00
Matt Bierner
8b2b819f55
Update test case
2021-10-12 17:29:53 -07:00
Matt Bierner
5d60bcd241
Fix null type error
2021-10-12 17:02:06 -07:00
Lemmingh
d3ceb35bec
Add source map for every possible element in the Markdown preview ( #134799 )
...
* Update markdown-it and type definitions
* Refresh the source map mechanism in `markdownEngine.ts`
2021-10-12 16:25:56 -07:00
Jim Griesmer
845af8a5c3
Enlarge small markdown text size - trivial change ( #134550 )
...
* Enlarge small markdown text size - trivial change
* Didn't intend to change h1 line height
* Simplify font-size story for h1, h2, h3 and p
2021-10-08 12:29:39 -07:00
Matt Bierner
0dae77d06e
Enable markdown links with line numbers to non-md files
...
Fixes #125320
2021-10-07 18:35:09 -07:00
Matt Bierner
ecae847b95
Fix navigate in untitled files
2021-10-07 18:14:16 -07:00
Matt Bierner
d8507236f1
Rewrite logic for opening markdown document links
...
Fixes #133823
This rewrites openDocumentLink to use `stat` to check if files exists before trying to open them. This lets us avoid showing extra error popups while trying to open resources
2021-10-07 18:10:05 -07:00
Logan Rasmussen
35ea6c0cf5
Remove angle brackets when checking the scheme ( #133419 )
...
* Remove angle brackets when checking the scheme
This only removes the brackets during the scheme check if the initial link provided actually has angle brackets.
* Move angle bracket logic to document link file
Change to use replace instead of match for easier reading
2021-10-04 08:31:52 -07:00
Logan Ramos
a4342f3add
Bump telemetry module
2021-10-01 16:52:56 -04:00
Don Jayamanne
d2c7e3d06f
Remove built-in latext output rendering in nb
2021-09-29 16:02:47 -07:00
Alex Dima
bfc02befad
Revert "Update highlightjs"
...
This reverts commit 436f9d38b0 .
2021-09-28 00:59:21 +02:00
Matt Bierner
436f9d38b0
Update highlightjs
2021-09-27 15:43:26 -07:00
Don Jayamanne
cb70ab5526
Merge pull request #133464 from DonJayamanne/textLatex
2021-09-23 15:13:16 -07:00
Logan Ramos
282f499c22
Update extension telemetry module
2021-09-23 11:26:57 -04:00
Don Jayamanne
1e5e3642b2
Misc
2021-09-22 13:16:37 -07:00
Matt Bierner
4c78259529
Revert 75e1fa6c43
...
Fixes #132741
Let's keep the outline extensible. Instead, a markdown extension could contribute support for the syntax in the original issue in #131427
2021-09-14 16:36:53 -07:00
Matt Bierner
e43d47e852
Add missing await
...
Doesn't seem to cause any issues currently
2021-09-14 09:54:05 -07:00
Matt Bierner
d3585388be
Make sure markdown.showSource correctly awaits opening the document
...
Fixes #132914
2021-09-14 09:54:05 -07:00
Matt Bierner
c62f59fcae
Fix map func not having this bound
...
Fixes #132703
2021-09-09 15:03:30 -07:00
Matt Bierner
277f6ef132
Log errors when loading markdown-it plugins
2021-09-08 15:12:46 -07:00
Matt Bierner
0e52275271
Introduce WebviewOptions.forms
...
Fixes #132157
2021-09-02 13:24:49 -07:00
John Murray
75e1fa6c43
fix #131427 ignore extension contributions when populating Outline for markdown file ( #131572 )
2021-08-30 14:13:17 -07:00
Matt Bierner
28bc889cea
Use ActivationFunction
2021-08-30 13:54:39 -07:00
Matt Bierner
0ec3d48b70
Use @types/vscode-notebook-renderer
2021-08-30 13:54:39 -07:00
Logan Ramos
8dbad73de5
Update built in extensions telemetry
2021-08-27 15:45:42 -04:00
Logan Ramos
ecc7fdac90
Bump extension telemetry module
2021-08-27 11:29:48 -04:00
Benjamin Pasero
68daa9669e
fix #131535 ( #131630 )
2021-08-25 10:53:38 -07:00
Matt Bierner
e56fa01346
Switch to dompurify
2021-08-18 16:54:59 -07:00
Matt Bierner
068dcfbfc8
Allow images in md by default
2021-08-18 16:54:58 -07:00
Matt Bierner
a6d26aa31c
Add insane for notebook markdown rendering
2021-08-18 15:09:23 -07:00
Jean Pierre
c094fcf995
Fixes #113475 ( #130815 )
2021-08-16 16:47:23 -07:00
Matt Bierner
691e9cea33
Support clickable links between markdown cells
...
Fixes #103519
2021-08-13 14:17:10 -07:00