From 82b0e6969e338169cb28c9f830b0800b50aebdff Mon Sep 17 00:00:00 2001 From: Hawtian Wang Date: Mon, 11 Dec 2023 16:06:01 +0800 Subject: [PATCH] ... --- src/core/format/rendered-node/codeblock.ts | 2 +- src/core/format/rendered-node/index.ts | 6 ++++-- src/index.ts | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/format/rendered-node/codeblock.ts b/src/core/format/rendered-node/codeblock.ts index 3e8d5df4..5e8b3d27 100644 --- a/src/core/format/rendered-node/codeblock.ts +++ b/src/core/format/rendered-node/codeblock.ts @@ -70,7 +70,7 @@ export function highlightContent( }); let m = 0; info("markers: %s", markers); - pango.addLines(''); + pango.addLines(''); for (let i = 0; i < content.length; i++) { while (m < markers.length && markers[m].offset <= i) { let marker = markers[m]; diff --git a/src/core/format/rendered-node/index.ts b/src/core/format/rendered-node/index.ts index f7f7bc65..881b5719 100644 --- a/src/core/format/rendered-node/index.ts +++ b/src/core/format/rendered-node/index.ts @@ -97,7 +97,8 @@ export class PangoMarkupGenerator { }) .map((p) => { if (p.kind === "markup") { - p.markup = this._addCommonTag(p.markup); + let markup = this._addCommonTag(p.markup); + p.markup = markup; } return p; }); @@ -118,6 +119,7 @@ export class PangoMarkupGenerator { if (!isNil(background)) { openTag += ` background="#${string.format("%06x", background)}"`; } + openTag += ` size="15pt"`; openTag += ">"; return `${openTag}${p}`; } @@ -362,7 +364,7 @@ export class CodeSpanNode extends SimpleWrapperNode { } openTag(): string { - return ''; + return ''; } closeTag(): string { diff --git a/src/index.ts b/src/index.ts index cb5131de..b2e6a5b7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,7 +17,6 @@ import { Markup } from "@glib/widgets/markup"; import { MarkupRenderer } from "@core/format/markdown"; import { PangoMarkupGenerator } from "@core/format/rendered-node"; -export { mdNode } from "@glib/widgets/markdown-doc/md-node"; export * as _ from "@glib/index"; export { AllLspServers } from "./conf/external_tools"; export { AllPlugins, LazySpecs } from "./conf/plugins";