chore(monorepo/server): integrate turndown-plugin-gfm

This commit is contained in:
Elian Doran 2025-04-18 12:47:58 +03:00
parent 3ddc8e5e7b
commit fc228ca47c
No known key found for this signature in database
23 changed files with 4 additions and 7 deletions

View File

@ -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;

View File

@ -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" {

View File

@ -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"