defuddle 0.3.4 → 0.3.5
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/README.md +1 -1
- package/dist/constants.d.ts +0 -1
- package/dist/defuddle.d.ts +1 -0
- package/dist/elements/code.d.ts +5 -0
- package/dist/elements/headings.d.ts +5 -0
- package/dist/{math.core.d.ts → elements/math.core.d.ts} +1 -1
- package/dist/elements/math.d.ts +2 -0
- package/dist/{math.full.d.ts → elements/math.full.d.ts} +1 -1
- package/dist/index.full.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/math.d.ts +0 -2
- /package/dist/{math.base.d.ts → elements/math.base.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ Inline references and footnotes are converted to a standard format:
|
|
|
129
129
|
```html
|
|
130
130
|
Inline reference<sup id="fnref:1"><a href="#fn:1">1</a></sup>.
|
|
131
131
|
|
|
132
|
-
<div
|
|
132
|
+
<div id="footnotes">
|
|
133
133
|
<ol>
|
|
134
134
|
<li class="footnote" id="fn:1">
|
|
135
135
|
<p>
|
package/dist/constants.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export declare const FOOTNOTE_LIST_SELECTORS: string;
|
|
|
12
12
|
export declare const ALLOWED_EMPTY_ELEMENTS: Set<string>;
|
|
13
13
|
export declare const ALLOWED_ATTRIBUTES: Set<string>;
|
|
14
14
|
export declare const ALLOWED_ATTRIBUTES_DEBUG: Set<string>;
|
|
15
|
-
export declare const SUPPORTED_LANGUAGES: Set<string>;
|
package/dist/defuddle.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MathData } from './math.base';
|
|
2
2
|
export declare const createCleanMathEl: (mathData: MathData | null, latex: string | null, isBlock: boolean) => Element;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const mathRules: {
|
|
4
4
|
selector: string;
|
|
5
5
|
element: string;
|
|
6
6
|
transform: (el: Element) => Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MathData } from './math.base';
|
|
2
2
|
export declare const getLatexFromElement: (el: Element) => string | null;
|
|
3
3
|
export declare const createCleanMathEl: (mathData: MathData | null, latex: string | null, isBlock: boolean) => Element;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const mathRules: {
|
|
5
5
|
selector: string;
|
|
6
6
|
element: string;
|
|
7
7
|
transform: (el: Element) => Element;
|