mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 05:59:35 +01:00
core: fix md export for notes with codeblocks
This commit is contained in:
@@ -21,7 +21,7 @@ import Collection from "./collection";
|
||||
import Note from "../models/note";
|
||||
import getId from "../utils/id";
|
||||
import { getContentFromData } from "../content-types";
|
||||
import qclone from "qclone/src/qclone";
|
||||
import qclone from "qclone";
|
||||
import { deleteItem, findById } from "../utils/array";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`convert HTML to markdown with codeblock2: html-to-md-codeblock2.md 1`] = `
|
||||
"\`\`\`
|
||||
hello
|
||||
\`\`\`
|
||||
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`convert HTML to markdown with codeblocks: html-to-md-codeblocks.md 1`] = `
|
||||
"Typescript is one of those languages that appear to be very simple. It's often described as \\"Javascript with types\\" and it fits that name very well. However, what many don't realize starting out with Typescript is that Typescript*is *a language and like all other languages it has it's own \\"secrets\\", it's own set of quirks.
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import showdown from "showdown";
|
||||
import showdown from "@streetwriters/showdown";
|
||||
import dataurl from "../utils/dataurl";
|
||||
import { getDummyDocument, parseHTML } from "../utils/html-parser";
|
||||
|
||||
|
||||
940
packages/core/package-lock.json
generated
940
packages/core/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -36,6 +36,7 @@
|
||||
"@microsoft/signalr": "^6.0.7",
|
||||
"@microsoft/signalr-protocol-msgpack": "^6.0.7",
|
||||
"@notesnook/logger": "*",
|
||||
"@streetwriters/showdown": "^3.0.1-alpha",
|
||||
"async-mutex": "^0.3.2",
|
||||
"base64-arraybuffer": "^1.0.2",
|
||||
"dayjs": "^1.11.3",
|
||||
@@ -45,7 +46,6 @@
|
||||
"linkedom": "^0.14.17",
|
||||
"liqe": "^1.13.0",
|
||||
"qclone": "^1.1.0",
|
||||
"showdown": "github:thecodrr/showdown",
|
||||
"spark-md5": "^3.0.2"
|
||||
},
|
||||
"np": {
|
||||
|
||||
Reference in New Issue
Block a user