Fix Markdown TOC Provider for Invalid References (#22553)

Fixes #22494

**Bug**
References without a definition can cause the markdown table of contents provider to break

**Fix**
Pass in an empty environment to markdown-it `parse` to prevent the null dereference on invalid links.
This commit is contained in:
Matt Bierner
2017-03-13 10:49:59 -07:00
committed by GitHub
parent d3fd888711
commit 31d0799fd8
3 changed files with 6 additions and 5 deletions

View File

@@ -191,7 +191,7 @@
},
"dependencies": {
"highlight.js": "^9.3.0",
"markdown-it": "^8.2.2",
"markdown-it": "^8.3.1",
"markdown-it-named-headers": "0.0.4",
"vscode-extension-telemetry": "^0.0.6",
"vscode-nls": "^2.0.2"