Commit Graph
164 Commits
Author SHA1 Message Date
katainaka 96ba7c27aa Fixed colorization of nested list. (#19596)
Fixed colorization of nested list with unindented line.
2017-02-01 14:18:23 -08:00
Matt Bierner 4afd014791 Add no unused paramter option to markdown extension 2017-02-01 13:34:35 -08:00
Matt Bierner 7c633148b3 Remove unneeded d.ts files from extensions (#19653)
* Remove unneeded d.ts files from extensions

Moves most extensions to use the lib files for the standard library that typescript provides.

* Remove a few more node.d.ts references
2017-02-01 12:34:50 -08:00
Martin Aeschlimann d133a5e17c [coffeescript] switch to atom/language-coffee-script. Fixes #14953, #14945, #15008 2017-01-31 22:44:17 +01:00
Matt Bierner ab91538237 Small cleanup of markdown extensions.ts 2017-01-31 11:47:40 -08:00
Matt Bierner 4d9dc7479b Fixes #19612 script tag on same line breaks markdown colorization 2017-01-31 11:26:16 -08:00
Matt Bierner 2e0df7fc38 Fixes #19610 2017-01-31 11:09:41 -08:00
Matt Bierner 7c96cd3c4a Support Fragments for intra document markdown editor links (#19639)
Adds support for editor links with fragements for markdown. This jumps to the correct header location if one can be found
2017-01-31 11:05:06 -08:00
Martin Aeschlimann 60bbe61489 [css] change grammar to atom/language-css 2017-01-31 17:10:28 +01:00
Matt Bierner 15c2d1f51e Move markdown preview content provider to own file (#19592) 2017-01-30 12:36:43 -08:00
katainaka e68ab660a3 Update markdown-it version (#19417) 2017-01-27 14:41:15 -08:00
Matt Bierner f7697a7f37 Support In-Document links inside of the markdown editor (#19411)
* Support In Document links inside of the markdown editor

Fixes #17288

* Cleaning up code to reduce duplication
2017-01-27 14:36:28 -08:00
Matt Bierner 6fe2bae3b5 Fixes Webview reload Flickering (#19394)
**Bug**
When refreshing a webview, a slight flicker can sometime be seen. This is especially noticable when using the markdown preview.

**Fix**
Instead of replacing the content of the iframe for refresh, create a new iframe with the new content and do a swap to update.
2017-01-25 13:00:58 -08:00
Matt Bierner fbea777a88 Fixes #19196 - Disable double click on links in markdown preview 2017-01-24 22:51:24 -08:00
Matt Bierner dbb77f1eef Smooth markdown scrolling 2017-01-24 22:22:51 -08:00
Matt Bierner b1ff58b808 Fixes #19324 2017-01-24 19:51:56 -08:00
Matt Bierner 042285d5e1 Fixes active selection line now showing is slection tracking is disabled in markdown preview] 2017-01-24 19:41:34 -08:00
Matt Bierner eba0fc96ff Fixes #19192 - markdown scroll selection sync setting disabling double click and other features 2017-01-24 19:37:13 -08:00
Matt Bierner d0163a1401 Fixes #19190 2017-01-24 19:30:29 -08:00
Matt Bierner 311adff0c9 Add more contrast to dark theme current line indication in markdown preview fixes #19323 2017-01-24 18:51:35 -08:00
Matt Bierner 8396a11dab Remove markdown logic to maintain position on resize since it is too choppy 2017-01-24 18:15:24 -08:00
Matt Bierner 41a5c6858c Remove duplicate calls in markdownEngine 2017-01-24 17:14:15 -08:00
Matt Bierner e7730e36a5 Scroll sync for list items and quotes fixes #19151 2017-01-24 15:46:01 -08:00
Matt Bierner d1998fef44 Remove logging call 2017-01-24 14:59:45 -08:00
Matt Bierner 77fbceeb1e Use selection active for initial line as well 2017-01-24 14:58:36 -08:00
Matt Bierner a765a1a298 Fixes #19133 2017-01-24 14:55:02 -08:00
Matt Bierner c8196b5ee5 Fixes #19126 2017-01-24 13:58:52 -08:00
Matt Bierner 4e7666da14 Fix relative links in markdown preview 2017-01-24 11:41:18 -08:00
Matt Bierner a9424c71e4 Improve markdown preview line indicator colors 2017-01-23 15:24:53 -08:00
Matt Bierner 93c4b5f077 Fixes #19093 2017-01-23 14:12:52 -08:00
Matt Bierner 0309c46454 Sort markdown settings 2017-01-23 14:08:14 -08:00
Matt Bierner a18fe04303 Add throttle for markdown scroll sync 2017-01-23 13:51:28 -08:00
Matt Bierner 6053021a6c Split up and rename Markdown Scroll Sync Settings (#19077)
Splits the markdown scroll sync settings to be more granular.
2017-01-23 11:59:12 -08:00
Matt Bierner 0451361010 Fixes #19070 2017-01-23 11:55:35 -08:00
Matt Bierner bc27d5c88e Restore double click to switch to editor behavior 2017-01-22 01:04:18 -08:00
Matt Bierner 5bf8cc7618 Add Markdown Preview to Editor Scroll Syncronization
Adds an initial implementation of scroll synrconization from the markdown preview to the editor. When the preview is scrolled, automatically scrolls the editor to reveal the same location.

This required adding a new supported reveal type `AtTop` in our API. This is already supported and used internally, but not really exposed in the public apis (except for the `revealLine` command).
2017-01-22 00:47:06 -08:00
Matt Bierner a02320ba80 Fixes md preview to editor sync when before first element in preview (#18959)
* Fixes md preview to editor sync when before first element in preview

* Fix potential undef reference
2017-01-20 17:23:21 -08:00
Matt Bierner dc614f212d Cleanup markdown extension (#18951)
* Splits symbol provider to own file
* Removes duplicate frontmatter logic
2017-01-20 15:20:37 -08:00
Matt Bierner 94909e76d0 Fixes #18946 (#18948) 2017-01-20 13:22:41 -08:00
Morag S 22cc4a1ce7 Markdown fixes (#18704)
* Fix typos

* Add Go, Rust and Scala

* Adjust Go, Rust and Scala's logic as per #17591
2017-01-20 12:51:09 -08:00
Matt Bierner d85dc993f9 Support Local File Links from the Markdown Preview (#18824)
* Support Local File Links from the Markdown Preview

Fixes #989

**Bug**

* `file://` links do not work in the markdown preview.
* `./file` and `/file` and `file` links do not work in the markdown preview.

**Fix**
For the first issue, allow `file://` links explicitly.

Add a custom link validator. If the incoming link has no scheme, try to resolve it relative to the current file or workspace. Likes like `/file` are relative to the workspace, while links like `file` or `./file` are relative to the current file.

* Fix reveal of source line on load in markdown preview
2017-01-20 12:44:09 -08:00
Matt Bierner b5ae881b26 Add Markdown Document Link Provider To Support Local Links (#18821)
* Support []() links

* Fix for file switching

* Fix local links with hash fragments
2017-01-20 11:36:34 -08:00
Joao Moreno ebba80143b Merge branch 'markdown-outline' of https://github.com/joaomoreno/vscode into joaomoreno-markdown-outline 2017-01-20 11:45:55 +01:00
Matt Bierner cc4833d868 Improve preview to editor mapping (#18816) 2017-01-19 16:11:34 -08:00
Matt Bierner e3b3959d8f Remove droid sans fallback from default markdown font fallback 2017-01-18 22:05:04 -08:00
Matt Bierner b29ef9b4e8 Prototyping Markdown Preview Synchronization With Editors (#18762)
* Adds command to post a message to an html preview

**Bug**
There is currently no easy way to communicate with an html preview document after the preview has been created.

**Fix**
Adds a command called `vscode.htmlPreview.postMessage` to post a message to a visible html preview. This message will only be posted if the target preview is visible.

Inside the preview, the event is recieved using the standard dom event:

* Remove logging

* proto

Continue proto

* clean up rendering

* Gate prototype

* Fix gating

* Remove public command

* Change setting name

* Added current position indicator

* Reveal center
2017-01-18 17:58:45 -08:00
Matt Bierner 5dc2fb8c30 Maintain Markdown Preview Scroll Position on Window Resize (#18760)
* proto

Continue proto

* Basic implementation
2017-01-18 15:42:32 -08:00
Matt Bierner 9721d92af8 Fixed named headers for markdown preview (#18759) 2017-01-18 14:17:26 -08:00
Matt Bierner 3d71a3254b Simplify markdown paragraph logic (#18531)
* Simplify markdown paragraph logic

* Fix for alt headers
2017-01-13 23:24:32 -08:00
Matt Bierner cf3d092b2e Fixes #11480 (#18532) 2017-01-13 15:52:41 -08:00