mirror of
https://github.com/zadam/trilium.git
synced 2025-09-30 10:37:22 +08:00
chore(monorepo/server): integrate turndown-plugin-gfm
This commit is contained in:
parent
3ddc8e5e7b
commit
fc228ca47c
23 changed files with 4 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue