Commit Graph

25 Commits

Author SHA1 Message Date
Matt Bierner
0fe7046f49 Enable Strict Null Checks and Use Lib References in Markdown Extension (#16346)
Makes a few changes to the markdown extension:

* Enables explicit null checks.
* Enables no implicit any checks.
* Switch to using TS 2.0 lib files.

This change required removing the mocha declaration from the shared `declare.d.ts`. Everything seems to compile fine without it.
2016-12-02 11:07:40 -08:00
Matt Bierner
0c6333e604 Add font settings for markdown preview (#16302)
Fixes #4641

Adds basic settings for controlling the markdown preview font. We already support this with custom css, but these settings are similar to what the editor and integrated terminal expose and allow for a few basic customizations. Custom style sheets will override these.
2016-12-01 12:55:00 -08:00
Matt Bierner
b88a89c996 Allow markdown preview to scroll past content (#15919)
* Allow markdown preview to scroll past content

Issue #15795

Allows the markdown preview to scroll past its contents, like we do with the editor.

Closes #15795

* Toggle preview scroll beyond using editor.scrollBeyondLastLine
2016-11-29 14:51:15 -08:00
Matt Bierner
1957e44186 Delete emacs tmp file :( 2016-11-14 10:36:09 -08:00
Matt Bierner
eb563582f4 Add yaml front matter support for Markdown (#15218)
* Add language support for yaml front matter to markdown grammar

* Add option to strip yaml front matter from preview

* Use enum for setting instead of boolean

* Better names

* Fix merge error
2016-11-11 15:09:32 -08:00
Joao Moreno
2bb3dd5d95 enable duplicate imports tslint rule 2016-11-11 17:02:08 +01:00
Johannes Rieken
093cd8b2a3 enable integration tests again, cleanup a little of the ///-reference mess, #14059 2016-10-20 12:04:01 +02:00
Johannes Rieken
69a30b6531 tsfmt - extensions/markdown 2016-10-08 09:33:01 +02:00
kieferrm
6b01b4c0d8 lookup of custom style sheets, fixes #8287 2016-06-30 14:50:58 -07:00
kieferrm
a1f6aadfee Change default value from null to []; fixed #8283 2016-06-30 12:45:47 -07:00
Johannes Rieken
315f8c83bf on config changes, only update preview documents, fixes #8491 2016-06-29 13:52:06 +02:00
Johannes Rieken
0a386aea9c md extension should set baseUrl to document uri, webview should not override user baseUrl, fixes #7898 2016-06-27 13:59:16 +02:00
kieferrm
b985edc9f5 introduce activation telemetry 2016-06-21 20:32:50 -07:00
kieferrm
b9b2a6d895 refactoring 2016-06-21 20:31:27 -07:00
kieferrm
3410cb13ac fix double quotes 2016-06-21 20:26:32 -07:00
kieferrm
7e72a4d17a fix toggle markdown preview/source \w keybinding 2016-06-21 20:22:31 -07:00
Johannes Rieken
f23877c4ed md - differentiate between showPreview and showSource
having two distinct commands allows us to have a context menu action in the explorer to show a preview
2016-06-17 11:23:17 +02:00
Johannes Rieken
6a1b806b3d fix update regression 2016-06-16 17:59:13 +02:00
Johannes Rieken
8c2fb77935 add icons for preview and view source 2016-06-16 11:40:52 +02:00
kieferrm
7ca2e8cf1a add timeout to avoid spamming 2016-06-15 10:21:03 +02:00
Johannes Rieken
bd8100ae2a use new label param when calling previewHtml 2016-06-14 15:01:58 +02:00
Johannes Rieken
7465727a0a update preview on type, don't read document from disk 2016-06-14 15:01:58 +02:00
kieferrm
f3cc2709d6 remove theme awareness opt-in 2016-06-14 15:01:58 +02:00
kieferrm
43a55c165a code hygiene 2016-06-14 15:01:58 +02:00
kieferrm
0b856de5a7 prepackage markdown extension 2016-06-14 15:01:58 +02:00