From 1b5342d9f0502430fe7186c430d01d99cb898345 Mon Sep 17 00:00:00 2001 From: Daniel Riggins Date: Mon, 23 Jan 2023 09:38:23 -0600 Subject: [PATCH] bg rendering patch --- server/models/pages.js.orig | 1173 +++++++++++++++++++++++++++++++++++ 1 file changed, 1173 insertions(+) create mode 100644 server/models/pages.js.orig diff --git a/server/models/pages.js.orig b/server/models/pages.js.orig new file mode 100644 index 00000000..dc54af9a --- /dev/null +++ b/server/models/pages.js.orig @@ -0,0 +1,1173 @@ +const Model = require('objection').Model +const _ = require('lodash') +const JSBinType = require('js-binary').Type +const pageHelper = require('../helpers/page') +const path = require('path') +const fs = require('fs-extra') +const yaml = require('js-yaml') +const striptags = require('striptags') +const emojiRegex = require('emoji-regex') +const he = require('he') +const CleanCSS = require('clean-css') +const TurndownService = require('turndown') +const turndownPluginGfm = require('@joplin/turndown-plugin-gfm').gfm +const cheerio = require('cheerio') + +/* global WIKI */ + +const frontmatterRegex = { + html: /^()?(?:\n|\r)*([\w\W]*)*/, + legacy: /^(