Commit Graph

435 Commits

Author SHA1 Message Date
Matt Bierner 73ae56b82b Build with latest TS nightly (#120690)
* Pick up new TS 4.3

Also tests adding override keywords for extensions as part of #120675

* Update to daily TS and workaround TS 4.3 issue

Works around https://github.com/microsoft/TypeScript/issues/43578
2021-04-07 12:19:05 -07:00
Matt Bierner d4412e708a Render markdown preview cells inside a shadow dom (#120137)
* Render markdown preview cells inside a shadow dom

Fixes #119971

This moves all markdown previews into shadow doms. This lets us prevent styles from outside the preview leak into the preview, and also prevents styles from the preview leak out into the rest of the notebook

* Use composedPath for handling events in webviews

This lets us handle clicks triggered inside of a shadow dom
2021-03-30 14:17:15 -07:00
Daniel Imms 06ce7bd297 Fix hygiene 2021-03-29 14:40:01 -07:00
William Desgardin 30ccdf6b6c feat: add typographer option for markdown preview (#119641)
Co-authored-by: Matt Bierner <matb@microsoft.com>
2021-03-29 14:18:59 -07:00
gregvanl 975115a2cb Setting descriptions typos and formatting 2021-03-25 10:17:31 -07:00
Matt Bierner e3e7fb0b2a Set explicit mode for markdown preview code
Fixes #119813
2021-03-24 12:30:37 -07:00
SteVen Batten 9c00242866 updating telemetry module for built-in exts 2021-03-22 16:28:08 -07:00
Matt Bierner 5c0c637a04 Make sure we ignore compiled media files 2021-03-19 12:12:59 -07:00
Matt Bierner c0885dd0c4 Add task to build extension media (#119294)
This lets us avoid checking in the compiled js files that are used inside webviews and notebooks
2021-03-18 19:15:59 -07:00
Matt Bierner 581a659d42 Update markdown notebook scripts 2021-03-16 17:28:29 -07:00
Matt Bierner 9b2ee7fb7d Reduce size of Katex bundle
Only load woff2 fonts instead of including all fallback font types in the bundle
2021-03-10 19:56:46 -08:00
Benjamin Pasero e916637528 tests - enable color output for integration tests 2021-03-01 15:10:15 +01:00
Manuel Thalmann cdd7066f00 Allow Markdown-Rendering Without Providing an Env-Parameter (#117041)
* Add a rule for initializing the image-stabilizer

* Only use `containingImages` if the variable exists
2021-02-22 14:02:36 -08:00
Habib Karim 9f08368e92 Handle normalized absolute file paths on markdown preview link click (#116649)
* Handle normalized absolute file paths on markdown preview link click #115812

* Parse file path using vscode.Uri
2021-02-18 19:07:22 -08:00
Matt Bierner 96718c6fe8 Add back build-notebook script 2021-02-11 17:21:30 -08:00
Matt Bierner 9b4f1aff5d Enable inline html tags in notebook markdown
Fixes #113351
2021-02-11 17:21:30 -08:00
Matt Bierner 6dd156d04b Support drag and drop copy for markdown cells
For #116393

Also removes some logging and improves drag/drop responsiveness
2021-02-10 17:37:51 -08:00
Matt Bierner 35f855796b Add support for markdown notebook renderers (#115191)
* Use shared webpack version instead of installing locally for simple-browser

* Use npm for building markdown preview

* render markdown in webview.

* update markdown preview height and offset

* Add basic custom notebook renderer point

* update css

* style update.

* update markdown header padding left

* Add example of loading katex to extend the markdown-it renderer

* Rename global to make clear it only applies to markdown-in

* hide/remove markdown preview

* Add wait for initial markdown preview rendering before showing notebook

* Add double click to switch to editing mode

* Fix markdown cells not getting updated after editing

* style polish

* notebook.experimental.useMarkdownRenderer

* switch render strategy.

* Adding very intial drag drop support for notebook markdown cells

* Implement drag/drop stubs for test classes

* Revert unrelated file changes

* Move markdown notebook math to own extension

* Add missing imports

Co-authored-by: rebornix <penn.lv@gmail.com>
2021-02-10 16:41:53 -08:00
Matt Bierner 91a20c06b9 Use npm for building markdown preview 2021-02-09 17:47:32 -08:00
João Moreno ec805db5ed add repository field to extensions package.json 2021-01-29 15:30:45 +01:00
João Moreno 9a5d14e307 run prettier over extensions json files 2021-01-29 15:19:18 +01:00
David Sanders 7b317afd93 Fix starting scroll for URIs with fragment (#111126) 2021-01-22 17:41:25 -08: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
Jean Pierre 7f4d67c94c Fix #110812 (#114553) 2021-01-19 14:21:02 -08:00
Matt Bierner a68f1326e8 Update built markdown preview code 2021-01-15 10:38:50 -08:00
Takashi Tamura a34e751b01 Fix scrolling of markdown preview. Close #65504 (#111094)
* Fix scrolling of markdown preview.

* Use scrollDisabledCount.

* Stop initializing scrollDisabledCount.

* Make scrollTo enough large to occur scroll events.

* Should resolve when the error event occurs.
2021-01-14 17:24:08 -08:00
Alexandru Dima 7242082983 Fixes #112834: Ensure the markdown link provider is registered before invoking vscode.executeLinkProvider 2020-12-30 21:50:10 +01:00
Alexandru Dima f74ad9692f Align @types/* dev dependencies (#112718) 2020-12-18 13:28:39 +01:00
Alexandru Dima fee6dbf4e0 Merge remote-tracking branch 'origin/master' into alex/node-modules-vscode 2020-12-17 22:02:47 +01:00
Alexandru Dima 7ca71e763d Move away from deprecated 'vscode' node module (#112718) 2020-12-17 21:40:14 +01:00
Alexandru Dima e0498f0cdd Share typescript node module (#112718) 2020-12-17 20:58:11 +01:00
Alexandru Dima e42440bd35 Merge remote-tracking branch 'origin/master' into alex/node-modules-webpack 2020-12-17 17:35:21 +01:00
Alexandru Dima 1cada18542 Share webpack related node modules (#112718) 2020-12-17 11:16:03 +01:00
Alexandru Dima ed19f6082f Share mocha related node modules (#112718) 2020-12-17 11:03:49 +01:00
meganrogge 0f33afa9f9 fix #112217 by replacing look behinds 2020-12-14 10:30:45 -08:00
dependabot[bot] 45c7cae914 Bump ini from 1.3.5 to 1.3.7 in /extensions/markdown-language-features (#112275)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-14 11:22:24 +01:00
Matt Bierner 92723a8a2c Bump markdown-it and highlight versions 2020-12-11 12:14:27 -08:00
Matt Bierner 79557ebbd2 Make sure markdown preview is updated if on disk file is updated
Fixes #111685
2020-12-09 14:08:15 -08:00
meganrogge 4884986dd6 tweak smart select test 2020-12-02 10:13:02 -08:00
meganrogge a2193cb827 fix #111714 2020-12-02 10:10:21 -08:00
meganrogge 5e54da666c fix #111675 and #111673 2020-12-01 17:03:47 -08:00
dependabot[bot] 6062ebe318 Bump highlight.js in /extensions/markdown-language-features (#111262)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.15.10 to 10.1.2.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/10.1.2/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/9.15.10...10.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 17:32:45 -08:00
meganrogge b2eca1fd4d Fix InMemoryDocument to support both OS line endings
Co-authored-by: mjbvz <matb@microsoft.com>
Co-authored-by: meganrogge <megan.rogge@microsoft.com>
2020-11-11 14:05:20 -08:00
Rob Lourens 35f9bac07d Disable markdown smart select tests #110365 2020-11-10 20:02:24 -08:00
Erik Krogh Kristensen 7a4e81a674 fix catastrophic backtracking when parsing markdown files (#109964) 2020-11-10 14:56:06 -08:00
Megan Rogge 63d15a97c7 Support character markup in mardown smart select (#110195)
* create tests and add selection functions for inline ranges
2020-11-10 11:38:27 -08:00
David Sanders fcef0e3db4 Use Array.flat() (#110189) 2020-11-09 12:46:26 -08:00
meganrogge 6e2aa0bfb7 clean up code and remove unused methods 2020-11-06 12:42:17 -08:00
David Sanders 153ba443d5 Use string.matchAll (#110074) 2020-11-06 11:49:56 -08:00
meganrogge fc07b2f170 add comments to clarify code 2020-11-06 11:38:21 -08:00