fixes #245
This commit is contained in:
parent
c858c8c5bb
commit
a8486b7923
4 changed files with 4 additions and 1 deletions
|
@ -360,7 +360,7 @@ export class MarkdownProcessor extends BaseProcessor {
|
|||
throw new Error(`Make sure to edit the README.md file before you publish your extension.`);
|
||||
}
|
||||
|
||||
const markdownPathRegex = /(!?)\[([^\]\[]+|!\[[^\]\[]+]\([^\)]+\))\]\(([^\)]+)\)/g;
|
||||
const markdownPathRegex = /(!?)\[([^\]\[]*|!\[[^\]\[]*]\([^\)]+\))\]\(([^\)]+)\)/g;
|
||||
const urlReplace = (all, isImage, title, link) => {
|
||||
const isLinkRelative = !/^\w+:\/\//.test(link) && link[0] !== '#';
|
||||
|
||||
|
|
1
src/test/fixtures/readme/readme.expected.md
vendored
1
src/test/fixtures/readme/readme.expected.md
vendored
|
@ -20,6 +20,7 @@ The status bar lets you quickly navigate to any issue and you can see all positi
|
|||
|
||||
[![Jump to issues](https://github.com/username/repository/raw/master/images/SpellMDDemo2.gif)](http://shouldnottouchthis/)
|
||||
[![Jump to issues](https://github.com/username/repository/raw/master/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/master/monkey)
|
||||
![](https://github.com/username/repository/raw/master/images/SpellMDDemo2.gif)
|
||||
|
||||
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ The status bar lets you quickly navigate to any issue and you can see all positi
|
|||
|
||||
[![Jump to issues](https://github.com/username/repository/path/to/images/SpellMDDemo2.gif)](http://shouldnottouchthis/)
|
||||
[![Jump to issues](https://github.com/username/repository/path/to/images/SpellMDDemo2.gif)](https://github.com/username/repository/blob/master/monkey)
|
||||
![](https://github.com/username/repository/path/to/images/SpellMDDemo2.gif)
|
||||
|
||||
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
|
||||
|
||||
|
|
1
src/test/fixtures/readme/readme.md
vendored
1
src/test/fixtures/readme/readme.md
vendored
|
@ -20,6 +20,7 @@ The status bar lets you quickly navigate to any issue and you can see all positi
|
|||
|
||||
[![Jump to issues](images/SpellMDDemo2.gif)](http://shouldnottouchthis/)
|
||||
[![Jump to issues](images/SpellMDDemo2.gif)](monkey)
|
||||
![](images/SpellMDDemo2.gif)
|
||||
|
||||
The `spellMD.json` config file is watched so you can add more ignores or change mappings at will.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue