yuhwa 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astro.d.ts +1 -1
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +15 -6
- package/dist/cli.js +92 -51
- package/dist/editor/assets/index-BQLsumas.js +587 -0
- package/dist/editor/assets/lsp.worker-RlPj9blG.js +26 -0
- package/dist/editor/index.html +1 -1
- package/dist/{figure-CCHRsOjO.d.ts → figure-BZHIKnxv.d.ts} +1 -1
- package/dist/{index-vqADUsNi.d.ts → index-Dl845tUQ.d.ts} +20 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/ironmark.d.ts +1 -1
- package/dist/ironmark.js +1 -1
- package/dist/lsp-browser.js +1 -1
- package/dist/lsp-node.js +1 -1
- package/dist/lsp-server.js +1 -1
- package/dist/lsp.js +1 -1
- package/dist/markdown-it.d.ts +1 -1
- package/dist/markdown-it.js +1 -1
- package/dist/{node-BSuTy08h.js → node-Bneu5eJV.js} +1 -1
- package/dist/remark.d.ts +1 -1
- package/dist/remark.js +1 -1
- package/dist/{server-Bl_1n2bb.js → server-DmQuHQrG.js} +1 -1
- package/dist/{service-BAPEZrJQ.js → service-BYS9Qfkq.js} +1 -1
- package/dist/{shared-BHxDevlD.js → shared-qo_r6RUN.js} +355 -288
- package/dist/{src-CAxa6h4u.js → src-wk7tBpWs.js} +398 -294
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +2 -2
- package/dist/vuepress.d.ts +1 -1
- package/dist/yuhwa.iife.js +62 -60
- package/package.json +1 -1
- package/dist/editor/assets/index-Cnjd5PIx.js +0 -585
- package/dist/editor/assets/lsp.worker-C79O_uwt.js +0 -26
package/dist/editor/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
rel="icon"
|
|
10
10
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%232563eb'/%3E%3Cstop offset='1' stop-color='%239333ea'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='15' fill='url%28%23g%29'/%3E%3Crect x='9' y='11' width='26' height='17' rx='5' fill='%23fff'/%3E%3Cpath d='M15 17.5h10M15 22h14' stroke='%237c3aed' stroke-opacity='.35' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M18 28v5a11 11 0 0 0 11 11h1' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='m29 38 6 6-6 6' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='38' y='36' width='17' height='16' rx='5' fill='%23fff' fill-opacity='.9'/%3E%3C/svg%3E"
|
|
11
11
|
/>
|
|
12
|
-
<script type="module" crossorigin src="./assets/index-
|
|
12
|
+
<script type="module" crossorigin src="./assets/index-BQLsumas.js"></script>
|
|
13
13
|
<link rel="stylesheet" crossorigin href="./assets/index-DaWl0OPj.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
@@ -107,6 +107,19 @@ declare const themeNames: (custom?: Record<string, unknown>) => string[];
|
|
|
107
107
|
declare function getTheme(name: string | undefined, custom?: Record<string, Record<string, string>>): Theme;
|
|
108
108
|
/** @deprecated use `isColor` */
|
|
109
109
|
declare const isToneOrHex: (v: string) => boolean;
|
|
110
|
+
/**
|
|
111
|
+
* True when a value can sit inside an SVG attribute or a style rule as is:
|
|
112
|
+
* any CSS colour or font list passes, quotes, angle brackets, `;`, braces,
|
|
113
|
+
* `&` and backslashes do not. Colours outside the palette go through this.
|
|
114
|
+
*/
|
|
115
|
+
declare const isSafeCss: (v: string) => boolean;
|
|
116
|
+
/**
|
|
117
|
+
* True for a link a diagram may carry: http(s), mailto, an anchor or a
|
|
118
|
+
* relative path. Other schemes (`javascript:`, `data:`, …) run code when the
|
|
119
|
+
* SVG is inlined in a page. Browsers drop whitespace and control characters
|
|
120
|
+
* inside a scheme, so the check does too.
|
|
121
|
+
*/
|
|
122
|
+
declare const isSafeLink: (v: string) => boolean;
|
|
110
123
|
type SegKind = "text" | "bold" | "muted" | "strike" | "accent" | "chip" | "color";
|
|
111
124
|
interface Seg {
|
|
112
125
|
kind: SegKind;
|
|
@@ -277,7 +290,7 @@ interface PanelKind<P = any> {
|
|
|
277
290
|
render(data: P, box: Box, ctx: PanelCtx): string;
|
|
278
291
|
/**
|
|
279
292
|
* Draggable points, in the same coordinates as `render`'s box. Editors show
|
|
280
|
-
* them and
|
|
293
|
+
* them and use layout offsets for previews and for purely visual edits. Both `measure` and
|
|
281
294
|
* `render` get it back as `ctx.offsets[part]`.
|
|
282
295
|
*/
|
|
283
296
|
handles?(data: P, box: Box, ctx: PanelCtx): PanelHandle[];
|
|
@@ -694,6 +707,8 @@ interface PanelHandle {
|
|
|
694
707
|
* so it keeps meaning the same thing when the plugin turns its drawing.
|
|
695
708
|
*/
|
|
696
709
|
axis?: "x" | "y" | "xy";
|
|
710
|
+
/** Rewrite existing body values from the final pixel offset, when the handle represents data. */
|
|
711
|
+
editPosition?(body: string[], offset: Point): string[] | null;
|
|
697
712
|
/** tooltip, e.g. "move commit" */
|
|
698
713
|
title?: string;
|
|
699
714
|
}
|
|
@@ -961,6 +976,8 @@ declare function editPart(source: string, panelId: string, edit: PartEdit, d?: D
|
|
|
961
976
|
source: string;
|
|
962
977
|
id?: string;
|
|
963
978
|
};
|
|
979
|
+
/** Finish a panel drag. Prefer the declaration; a purely visual handle uses layout. */
|
|
980
|
+
declare function writePanelDrag(source: string, d: Diagram, id: string, handle: PanelHandle): string;
|
|
964
981
|
interface MdBlock {
|
|
965
982
|
index: number;
|
|
966
983
|
name: string;
|
|
@@ -1000,7 +1017,7 @@ interface MdResult {
|
|
|
1000
1017
|
severity: string;
|
|
1001
1018
|
}[];
|
|
1002
1019
|
}
|
|
1003
|
-
declare function findBlocks(md: string, baseName?: string): MdBlock[];
|
|
1020
|
+
declare function findBlocks(md: string, baseName?: string, outDir?: string): MdBlock[];
|
|
1004
1021
|
declare function processMarkdown(md: string, opts?: MdOptions): MdResult;
|
|
1005
1022
|
/** Replace the source of block `index` in a markdown document. */
|
|
1006
1023
|
declare function replaceBlockSource(md: string, index: number, source: string): string;
|
|
@@ -1069,4 +1086,4 @@ declare function toSource(input: string | DiagramJSON): {
|
|
|
1069
1086
|
};
|
|
1070
1087
|
/** Parse, lay out and render a diagram to an SVG string. Never throws on bad input. */
|
|
1071
1088
|
declare function render(input: string | DiagramJSON, opts?: Options): Result;
|
|
1072
|
-
export {
|
|
1089
|
+
export { PANELS as $, PanelCtx as $t, MdBlock as A, isSafeLink as An, Layout as At, setProp as B, PartEdit as Bt, NODE_PROPS as C, THEME_NAMES as Cn, GroupDecl as Ct, ConvertResult as D, createTheme as Dn, LaidGroup as Dt, lint as E, ThemeInput as En, LaidEdge as Et, replaceBlockSource as F, approxMeasure as Fn, PanelHandle as Ft, lineStyle as G, ShapeName as Gt, writeLayout as H, Props as Ht, editPart as I, canvasMeasure as In, PanelOverride as It, JsonResult as J, GRID as Jt, SHAPES as K, Side as Kt, formatLayout as L, PanelPart as Lt, MdResult as M, ramp as Mn, NodeDecl as Mt, findBlocks as N, registerTheme as Nn, NodeOverride as Nt, fromMermaid as O, getTheme as On, LaidNode as Ot, processMarkdown as P, themeNames as Pn, PanelDecl as Pt, LexedLine as Q, FrameKind as Qt, setLabel as R, PartAction as Rt, GROUP_PROPS as S, THEME_KEYS as Sn, EdgeOverride as St, PANEL_PROPS as T, Theme as Tn, LabelRef as Tt, writePanelDrag as U, ResolvedEdgeStyle as Ut, setSetting as V, Point as Vt, dashFor as W, ResolvedNodeStyle as Wt, renderSvg as X, layout as Xt, fromJSON as Y, groupPath as Yt, KNOWN_SETTINGS as Z, Decoration as Zt, themes as _, segsW as _n, Curve as _t, render as a, YuhwaPlugin as an, isYuhwaPath as at, EDGE_PROPS as b, RAMPS as bn, Direction as bt, git as c, registry as cn, onlyColor as ct, sequence as d, ShapeKind as dn, serializeProps as dt, PanelKind as en, ParseOptions as et, legend as f, renderHead as fn, setLineProp as ft, charts as g, renderSegs as gn, Component as gt, tables as h, parseInline as hn, Box as ht, hash as i, StatementKind as in, blockBraces as it, MdOptions as j, isToneOrHex as jn, LayoutOverrides as jt, isMermaid as k, isSafeCss as kn, LaidPanel as kt, chart as l, use as ln, parse as lt, frames as m, Seg as mn, splitTrailingProps as mt, Options as n, RowKind as nn, Tok as nt, toSource as o, perPass as on, joinPath as ot, footer as p, InkColors as pn, setTrailingProp as pt, DiagramJSON as q, SourceRef as qt, Result as r, RowPaint as rn, TokKind as rt, builtins as s, recolor as sn, lex as st, InputFormat as t, RowCtx as tn, SETTING_VALUES as tt, timeline as u, MarkerKind as un, parseProps as ut, GUIDE as v, tspans as vn, Diagnostic as vt, NUMBERS as w, TONES as wn, HeadKind as wt, ENUMS as x, THEMES as xn, EdgeDecl as xt, BOOLS as y, LineStyle$1 as yn, Diagram as yt, setPartTone as z, PartChange as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { BOOLS, type Box, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, use, writeLayout };
|
|
1
|
+
import { $ as PANELS, $t as PanelCtx, A as MdBlock, An as isSafeLink, At as Layout, B as setProp, Bt as PartEdit, C as NODE_PROPS, Cn as THEME_NAMES, Ct as GroupDecl, D as ConvertResult, Dn as createTheme, Dt as LaidGroup, E as lint, En as ThemeInput, Et as LaidEdge, F as replaceBlockSource, Fn as approxMeasure, Ft as PanelHandle, G as lineStyle, Gt as ShapeName, H as writeLayout, Ht as Props, I as editPart, In as canvasMeasure, It as PanelOverride, J as JsonResult, Jt as GRID, K as SHAPES, Kt as Side, L as formatLayout, Lt as PanelPart, M as MdResult, Mn as ramp, Mt as NodeDecl, N as findBlocks, Nn as registerTheme, Nt as NodeOverride, O as fromMermaid, On as getTheme, Ot as LaidNode, P as processMarkdown, Pn as themeNames, Pt as PanelDecl, Q as LexedLine, Qt as FrameKind, R as setLabel, Rt as PartAction, S as GROUP_PROPS, Sn as THEME_KEYS, St as EdgeOverride, T as PANEL_PROPS, Tn as Theme, Tt as LabelRef, U as writePanelDrag, Ut as ResolvedEdgeStyle, V as setSetting, Vt as Point, W as dashFor, Wt as ResolvedNodeStyle, X as renderSvg, Xt as layout, Y as fromJSON, Yt as groupPath, Z as KNOWN_SETTINGS, Zt as Decoration, _ as themes, _n as segsW, _t as Curve, a as render, an as YuhwaPlugin, at as isYuhwaPath, b as EDGE_PROPS, bn as RAMPS, bt as Direction, c as git, cn as registry, ct as onlyColor, d as sequence, dn as ShapeKind, dt as serializeProps, en as PanelKind, et as ParseOptions, f as legend, fn as renderHead, ft as setLineProp, g as charts, gn as renderSegs, gt as Component, h as tables, hn as parseInline, ht as Box, i as hash, in as StatementKind, it as blockBraces, j as MdOptions, jn as isToneOrHex, jt as LayoutOverrides, k as isMermaid, kn as isSafeCss, kt as LaidPanel, l as chart, ln as use, lt as parse, m as frames, mn as Seg, mt as splitTrailingProps, n as Options, nn as RowKind, nt as Tok, o as toSource, on as perPass, ot as joinPath, p as footer, pn as InkColors, pt as setTrailingProp, q as DiagramJSON, qt as SourceRef, r as Result, rn as RowPaint, rt as TokKind, s as builtins, sn as recolor, st as lex, t as InputFormat, tn as RowCtx, tt as SETTING_VALUES, u as timeline, un as MarkerKind, ut as parseProps, v as GUIDE, vn as tspans, vt as Diagnostic, w as NUMBERS, wn as TONES, wt as HeadKind, x as ENUMS, xn as THEMES, xt as EdgeDecl, y as BOOLS, yn as LineStyle, yt as Diagram, z as setPartTone, zt as PartChange } from "./index-Dl845tUQ.js";
|
|
2
|
+
export { BOOLS, type Box, type Component, type ConvertResult, type Curve, type Decoration, type Diagnostic, type Diagram, type DiagramJSON, type Direction, EDGE_PROPS, ENUMS, type EdgeDecl, type EdgeOverride, type FrameKind, GRID, GROUP_PROPS, GUIDE, type GroupDecl, type HeadKind, type InkColors, InputFormat, type JsonResult, KNOWN_SETTINGS, type LabelRef, type LaidEdge, type LaidGroup, type LaidNode, type LaidPanel, type Layout, type LayoutOverrides, type LexedLine, type LineStyle, type MarkerKind, type MdBlock, type MdOptions, type MdResult, NODE_PROPS, NUMBERS, type NodeDecl, type NodeOverride, Options, PANELS, PANEL_PROPS, type PanelCtx, type PanelDecl, type PanelHandle, type PanelKind, type PanelOverride, type PanelPart, type ParseOptions, type PartAction, type PartChange, type PartEdit, type Point, type Props, RAMPS, type ResolvedEdgeStyle, type ResolvedNodeStyle, Result, type RowCtx, type RowKind, type RowPaint, SETTING_VALUES, SHAPES, type Seg, type ShapeKind, type ShapeName, type Side, type SourceRef, type StatementKind, THEMES, THEME_KEYS, THEME_NAMES, TONES, type Theme, type ThemeInput, type Tok, type TokKind, type YuhwaPlugin, approxMeasure, blockBraces, builtins, canvasMeasure, chart, charts, createTheme, dashFor, editPart, findBlocks, footer, formatLayout, frames, fromJSON, fromMermaid, getTheme, git, groupPath, hash, isMermaid, isSafeCss, isSafeLink, isToneOrHex, isYuhwaPath, joinPath, layout, legend, lex, lineStyle, lint, onlyColor, parse, parseInline, parseProps, perPass, processMarkdown, ramp, recolor, registerTheme, registry, render, renderHead, renderSegs, renderSvg, replaceBlockSource, segsW, sequence, serializeProps, setLabel, setLineProp, setPartTone, setProp, setSetting, setTrailingProp, splitTrailingProps, tables, themeNames, themes, timeline, toSource, tspans, use, writeLayout, writePanelDrag };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { et as BOOLS, tt as EDGE_PROPS, nt as ENUMS, b as GRID, rt as GROUP_PROPS, i as GUIDE, B as KNOWN_SETTINGS, it as NODE_PROPS, at as NUMBERS, V as PANELS, ot as PANEL_PROPS, gt as RAMPS, H as SETTING_VALUES, ct as SHAPES, _t as THEMES, vt as THEME_KEYS, yt as THEME_NAMES, bt as TONES, k as approxMeasure, U as blockBraces, C as builtins, A as canvasMeasure, T as chart, P as charts, xt as createTheme, ut as dashFor, c as editPart, a as findBlocks, j as footer, l as formatLayout, M as frames, v as fromJSON, g as fromMermaid, St as getTheme, w as git, x as groupPath, t as hash, _ as isMermaid, Ct as isSafeCss, wt as isSafeLink, Tt as isToneOrHex, W as isYuhwaPath, G as joinPath, S as layout, O as legend, K as lex, dt as lineStyle, st as lint, q as onlyColor, J as parse, ft as parseInline, Y as parseProps, I as perPass, o as processMarkdown, Et as ramp, L as recolor, Dt as registerTheme, R as registry, n as render, lt as renderHead, pt as renderSegs, y as renderSvg, s as replaceBlockSource, mt as segsW, D as sequence, X as serializeProps, u as setLabel, Z as setLineProp, d as setPartTone, f as setProp, p as setSetting, Q as setTrailingProp, $ as splitTrailingProps, N as tables, Ot as themeNames, F as themes, E as timeline, r as toSource, ht as tspans, z as use, m as writeLayout, h as writePanelDrag } from "./src-wk7tBpWs.js";
|
package/dist/ironmark.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* MDX takes it as JSX.
|
|
17
17
|
* A fence with `no-render` (```yuhwa no-render) stays a code block.
|
|
18
18
|
*/
|
|
19
|
-
import { t as YuhwaDocsOptions } from "./figure-
|
|
19
|
+
import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
|
|
20
20
|
/** replaces every yuhwa fence in `md` with its rendered figure */
|
|
21
21
|
export declare function renderFences(md: string, opts?: YuhwaDocsOptions, file?: string): string;
|
|
22
22
|
interface VitePlugin {
|
package/dist/ironmark.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-
|
|
1
|
+
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
|
|
2
2
|
// src/integrations/ironmark.ts
|
|
3
3
|
/**
|
|
4
4
|
* ironmark support: renders ```yuhwa fences before ironmark parses the file.
|
package/dist/lsp-browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as __commonJSMin, i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-
|
|
1
|
+
import { a as __commonJSMin, i as require_api, n as require_api$2, r as require_api$1, t as startServer } from "./server-DmQuHQrG.js";
|
|
2
2
|
// ../../node_modules/.pnpm/vscode-jsonrpc@10.0.0/node_modules/vscode-jsonrpc/lib/browser/ril.js
|
|
3
3
|
var require_ril = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/lsp-node.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
|
-
import { C as PANEL_PROPS, D as TONES, O as themeNames, S as NUMBERS, T as THEME_KEYS, _ as BOOLS, b as GROUP_PROPS, c as KNOWN_SETTINGS, d as blockBraces, g as serializeProps, h as parse, i as isMermaid, l as PANELS, m as lex, p as joinPath, s as diskResolve, t as VERSION, u as SETTING_VALUES, v as EDGE_PROPS, w as SHAPES, x as NODE_PROPS, y as ENUMS } from "./shared-
|
|
4
|
+
import { C as PANEL_PROPS, D as TONES, O as themeNames, S as NUMBERS, T as THEME_KEYS, _ as BOOLS, b as GROUP_PROPS, c as KNOWN_SETTINGS, d as blockBraces, g as serializeProps, h as parse, i as isMermaid, l as PANELS, m as lex, p as joinPath, s as diskResolve, t as VERSION, u as SETTING_VALUES, v as EDGE_PROPS, w as SHAPES, x as NODE_PROPS, y as ENUMS } from "./shared-qo_r6RUN.js";
|
|
5
5
|
// \0rolldown/runtime.js
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
package/dist/lsp-server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as startServer } from "./server-
|
|
1
|
+
export { t as startServer } from "./server-DmQuHQrG.js";
|
package/dist/lsp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as diffEdits, a as format, o as offsetAt, s as positionAt } from "./service-
|
|
1
|
+
export { t as SEMANTIC_LEGEND, n as YuhwaService, r as applyChange, i as diffEdits, a as format, o as offsetAt, s as positionAt } from "./service-BYS9Qfkq.js";
|
package/dist/markdown-it.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Add `yuhwa/style.css` to the site for the light/dark switch.
|
|
9
9
|
* A fence with `no-render` (```yuhwa no-render) stays a code block.
|
|
10
10
|
*/
|
|
11
|
-
import { t as YuhwaDocsOptions } from "./figure-
|
|
11
|
+
import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
|
|
12
12
|
type Rule = (tokens: any[], idx: number, options: any, env: any, self: any) => string;
|
|
13
13
|
interface MarkdownIt {
|
|
14
14
|
renderer: {
|
package/dist/markdown-it.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-
|
|
1
|
+
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
|
|
2
2
|
// src/integrations/markdown-it.ts
|
|
3
3
|
/**
|
|
4
4
|
* markdown-it plugin: renders ```yuhwa fences at build time.
|
package/dist/remark.d.ts
CHANGED
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
* Add `yuhwa/style.css` to the site for the light/dark switch.
|
|
10
10
|
* A fence with `no-render` (```yuhwa no-render) stays a code block.
|
|
11
11
|
*/
|
|
12
|
-
import { t as YuhwaDocsOptions } from "./figure-
|
|
12
|
+
import { t as YuhwaDocsOptions } from "./figure-BZHIKnxv.js";
|
|
13
13
|
export default function remarkYuhwa(opts?: YuhwaDocsOptions): (tree: any, file?: any) => void;
|
|
14
14
|
export { type YuhwaDocsOptions, remarkYuhwa };
|
package/dist/remark.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-
|
|
1
|
+
import { i as wantsRender, r as renderFigure, t as diskResolve } from "./node-Bneu5eJV.js";
|
|
2
2
|
// src/integrations/remark.ts
|
|
3
3
|
/**
|
|
4
4
|
* remark plugin: replaces ```yuhwa code blocks with a rendered figure.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as YuhwaService, r as applyChange, t as SEMANTIC_LEGEND } from "./service-
|
|
1
|
+
import { n as YuhwaService, r as applyChange, t as SEMANTIC_LEGEND } from "./service-BYS9Qfkq.js";
|
|
2
2
|
// \0rolldown/runtime.js
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as KNOWN_SETTINGS, G as joinPath, H as SETTING_VALUES, J as parse, K as lex, Ot as themeNames, U as blockBraces, V as PANELS, X as serializeProps, _ as isMermaid, at as NUMBERS, bt as TONES, ct as SHAPES, et as BOOLS, it as NODE_PROPS, nt as ENUMS, ot as PANEL_PROPS, rt as GROUP_PROPS, tt as EDGE_PROPS, vt as THEME_KEYS } from "./src-wk7tBpWs.js";
|
|
2
2
|
// src/lsp/format.ts
|
|
3
3
|
/**
|
|
4
4
|
* Formatting and text edits, without a parser of their own beyond `lex`.
|