@dskripchenko/ui 1.25.0 → 1.26.1
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/components/Markdown/markdown.d.ts +5 -15
- package/dist/index.cjs +24 -23
- package/dist/index.mjs +2817 -2793
- package/dist/styles/all.css +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +3 -2
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A small, dependency-free markdown → HTML renderer.
|
|
3
|
-
*
|
|
4
|
-
* It covers the everyday subset — headings, paragraphs, emphasis, inline code,
|
|
5
|
-
* fenced code, links, images, block quotes and callouts, lists, tables and
|
|
6
|
-
* rules — which is what a description, a note or a documentation page in an
|
|
7
|
-
* admin usually holds. A host that needs the full CommonMark grammar registers
|
|
8
|
-
* its own `markdown` field, entry or layout.
|
|
9
|
-
*
|
|
10
|
-
* Safety: the source is HTML-escaped BEFORE any markup is produced, so raw
|
|
11
|
-
* HTML in the markdown is shown as text, never executed; link and image URLs
|
|
12
|
-
* are limited to http(s), mailto, relative and anchor targets.
|
|
13
|
-
*
|
|
14
|
-
* Ported from laravel-admin core, where it was born; the kit is now its home.
|
|
15
|
-
*/
|
|
16
1
|
export declare function escapeHtml(text: string): string;
|
|
17
2
|
/** A heading met while rendering, for a table of contents. */
|
|
18
3
|
export interface MarkdownHeading {
|
|
@@ -38,6 +23,11 @@ export interface MarkdownOptions {
|
|
|
38
23
|
stripMdExtension?: boolean;
|
|
39
24
|
/** Reads `[[note]]` internal links (on by default): links with `data-wikilink` for the host to resolve. */
|
|
40
25
|
wikiLinks?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Reads TeX math (on by default): `$…$` and `\(…\)` in a line, `$$…$$` and
|
|
28
|
+
* `\[…\]` on lines of their own — drawn as MathML by @dskripchenko/math.
|
|
29
|
+
*/
|
|
30
|
+
math?: boolean;
|
|
41
31
|
/** The base relative image paths resolve against. */
|
|
42
32
|
imageBase?: string | null;
|
|
43
33
|
/**
|