diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..a8d61864 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "vsicons.presets.angular": false +} \ No newline at end of file diff --git a/package.json b/package.json index 5ab03505..a75d5999 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "private": false, "dependencies": { "@types/marked": "0.0.28", - "@types/prismjs": "^1.4.18", + "@types/prismjs": "^1.6.0", "marked": "^0.3.6", "prismjs": "^1.6.0" }, diff --git a/src/app/markdown-to-html/markdown-to-html.component.ts b/src/app/markdown-to-html/markdown-to-html.component.ts index 0979ec8a..e2d60540 100644 --- a/src/app/markdown-to-html/markdown-to-html.component.ts +++ b/src/app/markdown-to-html/markdown-to-html.component.ts @@ -2,6 +2,7 @@ import { AfterViewInit, Component, ElementRef, Input, OnChanges, SimpleChanges } import { MarkdownToHtmlService } from './markdown-to-html.service'; import * as marked from 'marked'; +import * as Prism from 'prismjs'; import 'prismjs/prism'; import 'prismjs/components/prism-c'; diff --git a/yarn.lock b/yarn.lock index 807f65a5..2ffe8546 100644 --- a/yarn.lock +++ b/yarn.lock @@ -140,9 +140,9 @@ version "6.0.65" resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.65.tgz#c00faa7ffcfc9842b5dd7bf650872562504d5670" -"@types/prismjs@^1.4.18": - version "1.4.18" - resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.4.18.tgz#3941877a78a27ce37011d6f28e404e388c97fe6c" +"@types/prismjs@^1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.6.0.tgz#99439af87fca94310869fea517646b363810edcf" "@types/q@^0.0.32": version "0.0.32" @@ -5187,20 +5187,13 @@ write-file-atomic@^1.1.2: imurmurhash "^0.1.4" slide "^1.1.5" -ws@1.1.1: +ws@1.1.1, ws@^1.0.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.1.tgz#082ddb6c641e85d4bb451f03d52f06eabdb1f018" dependencies: options ">=0.0.5" ultron "1.0.x" -ws@^1.0.1: - version "1.1.4" - resolved "https://registry.yarnpkg.com/ws/-/ws-1.1.4.tgz#57f40d036832e5f5055662a397c4de76ed66bf61" - dependencies: - options ">=0.0.5" - ultron "1.0.x" - wtf-8@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wtf-8/-/wtf-8-1.0.0.tgz#392d8ba2d0f1c34d1ee2d630f15d0efb68e1048a"