aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-12 16:52:08 +0100
committer0neGal <mail@0negal.com>2022-01-12 16:52:08 +0100
commitd2c302445fb865f237c4c5fba0c47a37c967398b (patch)
tree2c79e178498d712c150ba4ecbac6846acee39c6b
parentab71fa02bc751da44dee7d4118feaa13f28dee67 (diff)
downloadViper-d2c302445fb865f237c4c5fba0c47a37c967398b.tar.gz
Viper-d2c302445fb865f237c4c5fba0c47a37c967398b.zip
switched to marked over markdown
-rw-r--r--package-lock.json71
-rw-r--r--package.json2
-rw-r--r--src/app/launcher.js2
3 files changed, 11 insertions, 64 deletions
diff --git a/package-lock.json b/package-lock.json
index 5e3168f..8002222 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -12,7 +12,7 @@
"copy-dir": "^1.3.0",
"electron-updater": "^4.6.1",
"follow-redirects": "^1.14.6",
- "markdown": "^0.5.0",
+ "marked": "^4.0.9",
"marked-man": "^0.7.0",
"unzipper": "^0.10.11"
},
@@ -298,11 +298,6 @@
"integrity": "sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==",
"dev": true
},
- "node_modules/abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
"node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -2377,30 +2372,15 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/markdown": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/markdown/-/markdown-0.5.0.tgz",
- "integrity": "sha1-KCBbVlqK51kt4gdGPWY33BgnIrI=",
- "dependencies": {
- "nopt": "~2.1.1"
- },
- "bin": {
- "md2html": "bin/md2html.js"
- },
- "engines": {
- "node": "*"
- }
- },
"node_modules/marked": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
- "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==",
- "peer": true,
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.9.tgz",
+ "integrity": "sha512-HmoFvQwFLxNESeGupeOC+6CLb5WzcCWQmqvVetsErmrI3vrZ6gBumty5IP0ynLPR0zYSoVY7ITC1GffsYIGkog==",
"bin": {
- "marked": "bin/marked"
+ "marked": "bin/marked.js"
},
"engines": {
- "node": ">=0.10.0"
+ "node": ">= 12"
}
},
"node_modules/marked-man": {
@@ -2508,17 +2488,6 @@
"dev": true,
"optional": true
},
- "node_modules/nopt": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-2.1.2.tgz",
- "integrity": "sha1-bMzZd7gBMqB3MdbozljCyDA8+a8=",
- "dependencies": {
- "abbrev": "1"
- },
- "bin": {
- "nopt": "bin/nopt.js"
- }
- },
"node_modules/normalize-url": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz",
@@ -3718,11 +3687,6 @@
"integrity": "sha512-sAP4LldeWNz0lNzmTird3uWfFDWWTeg6V/MsmyyLR9X1idwKBWIgt/ZvinqQldJm3LecKEs1emkbquO6PCiLVQ==",
"dev": true
},
- "abbrev": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
- "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
- },
"ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -5330,19 +5294,10 @@
"semver": "^6.0.0"
}
},
- "markdown": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/markdown/-/markdown-0.5.0.tgz",
- "integrity": "sha1-KCBbVlqK51kt4gdGPWY33BgnIrI=",
- "requires": {
- "nopt": "~2.1.1"
- }
- },
"marked": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz",
- "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==",
- "peer": true
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.9.tgz",
+ "integrity": "sha512-HmoFvQwFLxNESeGupeOC+6CLb5WzcCWQmqvVetsErmrI3vrZ6gBumty5IP0ynLPR0zYSoVY7ITC1GffsYIGkog=="
},
"marked-man": {
"version": "0.7.0",
@@ -5420,14 +5375,6 @@
"dev": true,
"optional": true
},
- "nopt": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-2.1.2.tgz",
- "integrity": "sha1-bMzZd7gBMqB3MdbozljCyDA8+a8=",
- "requires": {
- "abbrev": "1"
- }
- },
"normalize-url": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz",
diff --git a/package.json b/package.json
index 78dcb36..9876b8c 100644
--- a/package.json
+++ b/package.json
@@ -51,7 +51,7 @@
"copy-dir": "^1.3.0",
"electron-updater": "^4.6.1",
"follow-redirects": "^1.14.6",
- "markdown": "^0.5.0",
+ "marked": "^4.0.9",
"marked-man": "^0.7.0",
"unzipper": "^0.10.11"
},
diff --git a/src/app/launcher.js b/src/app/launcher.js
index 9e09938..2c8d123 100644
--- a/src/app/launcher.js
+++ b/src/app/launcher.js
@@ -1,4 +1,4 @@
-const markdown = require("markdown").markdown.toHTML;
+const markdown = require("marked").parse;
function page(page) {
let pages = document.querySelectorAll(".mainContainer .contentContainer")