mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-06-20 19:20:31 +12:00
added html-parse-stringify
This commit is contained in:
parent
8c761e3058
commit
18ae5ff59d
13
package-lock.json
generated
13
package-lock.json
generated
|
@ -8600,6 +8600,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"html-parse-stringify": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-3.0.1.tgz",
|
||||
"integrity": "sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==",
|
||||
"requires": {
|
||||
"void-elements": "3.1.0"
|
||||
}
|
||||
},
|
||||
"html-webpack-plugin": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-4.5.0.tgz",
|
||||
|
@ -16748,6 +16756,11 @@
|
|||
"integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==",
|
||||
"dev": true
|
||||
},
|
||||
"void-elements": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/void-elements/-/void-elements-3.1.0.tgz",
|
||||
"integrity": "sha1-YU9/v42AHwu18GYfWy9XhXUOTwk="
|
||||
},
|
||||
"vue": {
|
||||
"version": "2.6.12",
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.12.tgz",
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"apexcharts": "^3.26.0",
|
||||
"axios": "^0.18.1",
|
||||
"core-js": "^3.6.5",
|
||||
"html-parse-stringify": "^3.0.1",
|
||||
"json2md": "^1.10.0",
|
||||
"katex": "^0.12.0",
|
||||
"lodash": "^4.17.20",
|
||||
|
|
|
@ -243,7 +243,7 @@ import json2md from "json2md/lib/index.js"
|
|||
// @ts-ignore
|
||||
// import PDFkit from "pdfkit/js/pdfkit.standalone.js"
|
||||
// @ts-ignore
|
||||
// import htmlParseStringify from "html-parse-stringify/dist/html-parse-stringify.modern.js"
|
||||
import htmlParseStringify from "html-parse-stringify/dist/html-parse-stringify.modern.js"
|
||||
import DialogBase from "src/components/dialogs/_DialogBase"
|
||||
import { uid, extend } from "quasar"
|
||||
import fs from "fs-extra"
|
||||
|
@ -965,8 +965,7 @@ export default class ExportProject extends DialogBase {
|
|||
const returnNodeList: I_HtmlParserNode[] = []
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
||||
const parsedHTML: I_HtmlParserNode = "" as unknown as I_HtmlParserNode
|
||||
// htmlParseStringify.parse(`<div>${input}</div>`)
|
||||
const parsedHTML: I_HtmlParserNode = htmlParseStringify.parse(`<div>${input}</div>`)
|
||||
|
||||
const processNodeStyles = (styleSting: string) => {
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-regexp-exec
|
||||
|
|
Loading…
Reference in a new issue