mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
feat: markdown export (#233)
This commit is contained in:
4
src-tauri/src/scripts/markdown.export.js
vendored
4
src-tauri/src/scripts/markdown.export.js
vendored
@@ -2,7 +2,9 @@ var ExportMD = (function () {
|
||||
if (!TurndownService || !turndownPluginGfm) return;
|
||||
const hljsREG = /^.*(hljs).*(language-[a-z0-9]+).*$/i;
|
||||
const gfm = turndownPluginGfm.gfm
|
||||
const turndownService = new TurndownService()
|
||||
const turndownService = new TurndownService({
|
||||
hr: '---'
|
||||
})
|
||||
.use(gfm)
|
||||
.addRule('code', {
|
||||
filter: (node) => {
|
||||
|
||||
Reference in New Issue
Block a user