Commit Graph

72 Commits

Author SHA1 Message Date
Johannes Rieken
69a30b6531 tsfmt - extensions/markdown 2016-10-08 09:33:01 +02:00
Kai Maetzel
37cffbd031 Merge pull request #11066 from eklavyamirani/master
Fixed: Markdown syntax highlighting to support alternative header styles
2016-09-26 17:44:21 -07:00
Matt Bierner
5c32264d0e Update markdown syntax highlighing test results 2016-09-26 10:50:58 -07:00
Matt Bierner
0b70faeec6 Fix colorization of markdown links and inlines inside of lists and quotes
Issue #12344

**Bug**
Current colorization rules are too relaxed. Links inside lists of block quotes for example end up getting colored differently than normal links.

**Fix**
- Add a scope to the textmate markdown grammar so that we can identify the symbol that starts a list or quote.
- Remove text colorization rule for lists and quotes since this just duplicates the normal text color.
- Only apply special puctuator colorization to the start symbol for lists and quotes
2016-09-26 10:50:58 -07:00
Matt Bierner
93d16ef30a Fix colorization for markdown indented paragraphs
Issue #8264

**Bug**
Indented paragraphs are not highlighted in markdown files. Up to three spaces are allowed before the first non space character.

**Fix**
Add rule to consume optional spaces before paragrpah start.

closes #8264
2016-09-26 10:49:47 -07:00
Matt Bierner
265c025bbf Use blankline to delimit html block in markdown colorization
**Bug**
Issue #7725

Nested html is not colorized properly for markdown:

```md
<div class="custom-class" markdown="1">
  <div>
    nested div
  </div>
</div>
```

**Fix**
According to the commonmark spec, general html blocks end with a blank line: http://spec.commonmark.org/0.25/#html-blocks

This change relaxes the while so that we only check for blanklines, instead of trying to match the start tag (which fails when nesting elements)
2016-09-26 10:48:54 -07:00
Matt Bierner
102adb766e Also support any number of spaces after end of closing fenced code block 2016-09-26 10:47:31 -07:00
Matt Bierner
69f2e874fc Fix Markdown Colorization for Fenced Code Blocks When End Fence Is Prefixed by Spaces
Issue #8636

**Bug**
Fenced code block closing tags break colorization if they are prefixed with spaces. According to the commonmark spec, up to three spaces are allowed.

**Fix**
Update defintion of fenced code block closing tag to support spaces.

Closes #8636
2016-09-26 10:47:31 -07:00
Matt Bierner
90d58f4909 Fix colorization of html prefixed by spaces in markdown files
Issue #12289

**Bug**
Html tags prefixed by 1 to 4 spaces are not colorized properly

**Fix**
Consume optional leading whitespace when matching html tags instead of only starting from previous match location

closes #12289
2016-09-26 10:46:00 -07:00
Matt Bierner
5169a9806a Add Syntax Highlighting for C# Code in Markdown files
Adds c# to the list of language highlighted in markdown fenced code blocks. You must have a c# language extension install for this to work.

Closes #7003
2016-09-26 10:44:14 -07:00
Matt Bierner
3b8ec4a12f Fix Markdown Preview Code in Header Font Size
**Bug**
In Markdown preview, code blocks in headers are the wrong font size.

**Fix**
Specify that code blocks in headers should inherit their font-size, instead of brining their own.
2016-09-26 10:35:25 -07:00
Matt Bierner
9e28d5764c Show Markdown Preview Menu Button For any File Opened as Markdown
Issue #7638

**Bug**
Open a `.txt` file containing markdown in VSCode. Select the editor language as `markdown` and the highlighing kicks in, but there is no preview button for the file.

**Fix**
Base display of the markdown preview button on `resourceScheme` instead of `resourceLangId`.

Closes #7638
2016-09-22 11:06:32 -07:00
kieferrm
aeda1791fe update tests results for the new version of the textmate engine 2016-09-21 22:17:16 -07:00
Alex Dima
91ff124083 Fix failing integration tests 2016-09-21 17:01:23 +03:00
Eklavya Mirani
2e886c0708 fixed broken markdown tests. 2016-08-28 23:20:58 +05:30
Eklavya Mirani
9aff1d0f74 Added the --- seperator to the paragraph rule
to allow heading-setext.2 rule to be recognized
2016-08-28 16:31:02 +05:30
Eklavya Mirani
45fbd00dd5 Moved TM Markdown seperator rule below the Paragraph
rule to fix the alt heading 2 syntax highlighting.
2016-08-27 13:55:51 +05:30
Martin Aeschlimann
4a13944af6 Migrate all other languages to language-configuration.json 2016-07-21 20:30:37 +02:00
Daniel Imms
9900f278ab Proper copy and paste support for integrated terminal
Fixes #6451
2016-07-11 15:13:13 -07:00
Alex Dima
d5862e8dba Clean extensions OSSREADME.json since the tool now can scan all npm-shrinkwrap.json files 2016-07-07 12:36:49 +03:00
Benjamin Pasero
4e72dcc359 make colorization tests happy for markdown 2016-07-02 14:31:05 +02:00
kieferrm
1f98af0f91 corect oss library version infomation 2016-07-01 14:19:00 -07:00
kieferrm
a1c2fcb9bd Add category, fixes #8271 2016-07-01 12:05:44 -07:00
Andre Weinand
ea6eae40e0 update OSSREADME from npm-shrinkwrap 2016-07-01 15:21:42 +02:00
kieferrm
9d50ac3f78 Add windows specific guidance 2016-06-30 16:45:27 -07: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
kieferrm
cf436e49f1 shrinkwrap markdown extension 2016-06-30 11:49:01 -07:00
Johannes Rieken
4f97002dac tweak OSSREADME
* add copy right for authors of bundles
* inline license/copyrigyt for tomorrow-theme since tools strugles with file
2016-06-30 13:42:23 +02:00
Johannes Rieken
315f8c83bf on config changes, only update preview documents, fixes #8491 2016-06-29 13:52:06 +02:00
Johannes Rieken
eb2b0d1a15 deliver and wire in icons, #8111 2016-06-28 16:31:50 +02:00
kieferrm
8657e6e2b5 update markdown test results 2016-06-27 11:29:44 -07:00
kieferrm
e33e9a83ba fixed #8066 2016-06-27 10:42:23 -07:00
kieferrm
51f246f287 Merge branch 'FixMarkdownIssues' of git://github.com/rebornix/vscode into rebornix-FixMarkdownIssues 2016-06-27 09:58:49 -07:00
Martin Aeschlimann
e228769042 Polish configuration section labels & add link 2016-06-27 18:37:04 +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
Johannes Rieken
61973222fd support group property for menu item and treat 'navigation' special 2016-06-24 17:15:00 +02:00
Johannes Rieken
dbb8c3f3b6 markdown uses explorer/context menu 2016-06-23 16:27:49 +02:00
Johannes Rieken
51f0436d53 rename editor/primary to editor/title, remove editor/secondary 2016-06-23 15:42:01 +02:00
Johannes Rieken
87d3f05666 actionBarContributor, scope keybindings services 2016-06-23 12:17:41 +02:00
Johannes Rieken
22773cb862 replace ActionService with MenuService, merge both contribution points, add user friendly objects 2016-06-22 16:59:49 +02:00
Johannes Rieken
40deddb4a7 Merge branch 'master' into joh/menus 2016-06-22 10:25:29 +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
65d93c9408 Fix up duplicated names in command pallete 2016-06-21 20:24:08 -07:00
kieferrm
7e72a4d17a fix toggle markdown preview/source \w keybinding 2016-06-21 20:22:31 -07:00
Johannes Rieken
cc8f1034db make command#when be like keybinding#when 2016-06-20 21:29:23 +02:00
rebornix
db7a7f89d7 Fix #3746 2016-06-20 17:42:55 +08:00
rebornix
c958b5cb37 Fix #6113 2016-06-20 17:42:20 +08:00