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";
|
||||
|
||||
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;
|
||||
|
||||
|
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;
|
||||
}
|
||||
|
||||
declare module "@joplin/turndown-plugin-gfm" {
|
||||
declare module "@triliumnext/turndown-plugin-gfm" {
|
||||
import TurndownService from "turndown";
|
||||
namespace gfm {
|
||||
function gfm(service: TurndownService): void;
|
||||
}
|
||||
export default gfm;
|
||||
export function gfm(service: TurndownService): void;
|
||||
}
|
||||
|
||||
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.",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
Loading…
x
Reference in New Issue
Block a user