mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(monorepo/server): integrate turndown-plugin-gfm
This commit is contained in:
parent
3ddc8e5e7b
commit
fc228ca47c
@ -1,7 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import TurndownService, { type Rule } from "turndown";
|
import TurndownService, { type Rule } from "turndown";
|
||||||
import { gfm } from "../../../packages/turndown-plugin-gfm/src/gfm.js";
|
import { gfm } from "@triliumnext/turndown-plugin-gfm";
|
||||||
|
|
||||||
let instance: TurndownService | null = null;
|
let instance: TurndownService | null = null;
|
||||||
|
|
||||||
|
7
apps/server/src/types.d.ts
vendored
7
apps/server/src/types.d.ts
vendored
@ -18,12 +18,9 @@ declare module "normalize-strings" {
|
|||||||
export default normalizeString;
|
export default normalizeString;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "@joplin/turndown-plugin-gfm" {
|
declare module "@triliumnext/turndown-plugin-gfm" {
|
||||||
import TurndownService from "turndown";
|
import TurndownService from "turndown";
|
||||||
namespace gfm {
|
export function gfm(service: TurndownService): void;
|
||||||
function gfm(service: TurndownService): void;
|
|
||||||
}
|
|
||||||
export default gfm;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare module "is-animated" {
|
declare module "is-animated" {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@joplin/turndown-plugin-gfm",
|
"name": "@triliumnext/turndown-plugin-gfm",
|
||||||
"description": "Turndown plugin to add GitHub Flavored Markdown extensions.",
|
"description": "Turndown plugin to add GitHub Flavored Markdown extensions.",
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
Loading…
x
Reference in New Issue
Block a user