Matt Bierner
77ff6eb03b
Add image specific link normalizer ( #124400 )
2021-05-21 14:42:50 -07:00
Matt Bierner
22dc518a21
Remove unused type
2021-05-21 12:16:49 -07:00
Andrea Mah
f594bb47e5
removing more unecessary whitespace
2021-05-19 17:00:55 -06:00
Andrea Mah
9ee1906718
pr feedback and combining prevEditor info for preview and non-preview
2021-05-19 16:57:12 -06:00
Andrea Mah
94498778fb
cleanup
2021-05-13 15:24:56 -06:00
Andrea Mah
9731995d94
addressed ! nit
2021-05-13 12:39:52 -06:00
Andrea Mah
3dec3b3385
applied PR feedback
2021-05-13 12:30:10 -06:00
Andrea Mah
18950181eb
scroll state persists while toggling between static preview and text
2021-05-12 16:59:57 -06:00
Henning Dieterichs
1f8643ef76
Refresh Images In Markdown Preview On Change ( #114083 )
...
* Refresh Images In Markdown Preview On Change (implements #65258 ).
* Fixes tests.
* Implements etags.
* Adds tests for urlToUri.
* Updates doc comment.
2021-01-19 18:01:21 -08:00
David Sanders
fcef0e3db4
Use Array.flat() ( #110189 )
2020-11-09 12:46:26 -08:00
Matt Bierner
fdf23dc5f9
Working on supporting markdown links in serverless+web
...
For #101203
2020-07-10 13:25:55 -07:00
Matt Bierner
b42086b6eb
Enable markdown language features for web/serverless
2020-06-09 15:32:18 -07:00
Ilia Pozdnyakov
f3a31a4eeb
fix uri fragment slugification #94508 ( #94655 )
2020-04-09 14:21:18 -07:00
Matt Bierner
886ea7a8b4
💄
2019-11-08 10:38:51 -08:00
Matt Bierner
78559bf9e6
Normalize vscode links in markdown files to target current vscode version
...
Fixes #71622
This allows you to use generic `vscode` links inside the markdown preview and still have them work if the preview is viewed in insiders
2019-10-23 20:27:52 -07:00
Johannes Rieken
32b2861498
workaround - remove as const to make webpack happy...
2019-10-07 14:17:39 +02:00
Matt Bierner
36aa903d5a
Rewrite how we handle links in the md preview
...
Try to simplify how we resolve links:
- Move most logic out of the preview itself.
- Simplify the amount of rewriting we do in the markdown engine
2019-10-04 17:57:33 -07:00
Matt Bierner
c5dc9d16be
Finalize asWebviewUri api
...
Fixes #79242
As discussed, renames `toWebviewResource` to `asWebviewUri` to be consistent with the `asAbsolutePath` api naming
2019-08-19 20:18:26 -07:00
Matt Bierner
4c07744817
Make sure we handle loading of markdown resources from UNC workspace correctly
...
Fixes #48403
2019-07-09 15:52:43 -07:00
Matt Bierner
c01a3a718d
Use clearer name for csp webview element
...
#76489
2019-07-09 11:45:20 -07:00
Matt Bierner
a558a9504a
Adding toWebviewResource api
...
For #76489
2019-07-08 18:38:47 -07:00
Matt Bierner
8119b4aee7
Move the webviewResourceRoot property to be set on each webview instead of as a global property
...
For #72155
This allows us to potentially change the resource root per webview
2019-06-24 17:07:06 -07:00
Matt Bierner
7f3d3d835f
Add vscode.env.webviewResourceRoot api
...
Fixes #72155
Adds a constant to the api that tracks the root path for resources inside of webviews. This is required because we will not be able to use `vscode-resource:` uris on the web. Our current approach is to rewrite the html we are given but there are almost certainly going to be cases where we don't get this quite right.
Adopts the new api for the markdown preview
2019-06-18 22:29:37 -07:00
Matt Bierner
0ec326531e
Use flatten array helper
2019-04-02 17:16:10 -07:00
Matt Bierner
d655e6f726
Make sure we always include uriScheme in knownSchems for markdown
2019-04-02 16:27:22 -07:00
Evan Bovie
8c1079b443
Add vscode-insiders URI prefix to knownSchemes in links.ts
2019-04-02 10:23:39 -07:00
Evan Bovie
13948796f3
Add vscode: URI prefix to knownSchemes in links.ts
2019-03-28 12:36:37 -07:00
Matt Bierner
038e8d3904
Make markdown extension points dynamic
...
For #67574
Blocked by #67958
2019-02-05 17:45:11 -08:00
Matt Bierner
8f10101dd4
Create base class for disposable objects
2019-02-05 17:45:11 -08:00
Matt Bierner
e21df781db
Treat data: as a known markdown link scheme
...
Fixes #62142
2018-10-30 11:34:33 -07:00
Matt Bierner
b72c349e05
Don't try re-encoding vscode-resoure markdown links
...
Fixes #60374
Some markdown-it extensions end up reprocessing the same tokens multiple times. This can result in our link normalized being re-invoked on a link, which causes it to fail
Fix to to make sure that `vscode-resource` is a recongized link so that we don't try re-normalizing in these cases
2018-10-29 16:18:11 -07:00
Matt Bierner
4096b5d68e
Avoid uri parse warnings for markdown uris
...
Fixes #58566
We only support local file links or a small set of normal schemes, like `http` and `mailto`. Use this to avoid calling `Uri.parse` with scheme-less paths such as `Uri.parse('/images/cat.gif')`
2018-09-13 15:43:47 -07:00
Matt Bierner
05aab259e7
Extract constant
2018-06-11 18:38:03 -07:00
Matt Bierner
7a24ced69f
Make sure fenced code blocks properly get line numbers assigned
...
Fixes #51095
2018-06-04 10:16:58 -07:00
Matt Bierner
017d09e2fe
Be more lazy computing symbols
2018-04-13 16:34:25 -07:00
Matt Bierner
468dc867cd
Rename markdown to markdown-language-features
2018-03-19 21:08:39 -07:00