mdream 0.15.3 → 0.17.0
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 +20 -10
- package/dist/_chunks/const.mjs +109 -268
- package/dist/_chunks/extraction.mjs +3 -5
- package/dist/_chunks/markdown-processor.mjs +195 -186
- package/dist/_chunks/plugin.d.mts +1 -2
- package/dist/_chunks/plugin.mjs +1 -2
- package/dist/_chunks/plugins.mjs +38 -215
- package/dist/_chunks/src.mjs +1 -4
- package/dist/_chunks/types.d.mts +6 -22
- package/dist/cli.mjs +6 -5
- package/dist/iife.js +8 -8
- package/dist/index.d.mts +4 -7
- package/dist/index.mjs +2 -3
- package/dist/llms-txt.mjs +468 -4
- package/dist/negotiate.d.mts +26 -0
- package/dist/negotiate.mjs +92 -0
- package/dist/plugins.d.mts +4 -15
- package/dist/plugins.mjs +3 -3
- package/dist/preset/minimal.d.mts +1 -2
- package/dist/preset/minimal.mjs +40 -4
- package/dist/splitter.d.mts +1 -2
- package/dist/splitter.mjs +26 -28
- package/package.json +10 -2
- package/dist/_chunks/llms-txt.mjs +0 -464
- package/dist/_chunks/minimal.mjs +0 -40
package/dist/_chunks/minimal.mjs
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { A as TAG_BUTTON, Dt as TAG_OBJECT, Ht as TAG_SELECT, K as TAG_EMBED, S as TAG_ASIDE, X as TAG_FOOTER, Y as TAG_FIGURE, Z as TAG_FORM, dt as TAG_INPUT, lt as TAG_IFRAME, nn as TAG_TEXTAREA, q as TAG_FIELDSET, wt as TAG_NAV } from "./const.mjs";
|
|
2
|
-
import { a as filterPlugin, i as frontmatterPlugin, r as isolateMainPlugin, t as tailwindPlugin } from "./plugins.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/preset/minimal.ts
|
|
5
|
-
/**
|
|
6
|
-
* Creates a configurable minimal preset with advanced options
|
|
7
|
-
*
|
|
8
|
-
* @param options HTML to Markdown options
|
|
9
|
-
* @returns HTML to Markdown options with configured plugins
|
|
10
|
-
*/
|
|
11
|
-
function withMinimalPreset(options = {}) {
|
|
12
|
-
const plugins = [
|
|
13
|
-
frontmatterPlugin(),
|
|
14
|
-
isolateMainPlugin(),
|
|
15
|
-
tailwindPlugin(),
|
|
16
|
-
filterPlugin({ exclude: [
|
|
17
|
-
TAG_FORM,
|
|
18
|
-
TAG_FIELDSET,
|
|
19
|
-
TAG_OBJECT,
|
|
20
|
-
TAG_EMBED,
|
|
21
|
-
TAG_FIGURE,
|
|
22
|
-
TAG_FOOTER,
|
|
23
|
-
TAG_ASIDE,
|
|
24
|
-
TAG_IFRAME,
|
|
25
|
-
TAG_INPUT,
|
|
26
|
-
TAG_TEXTAREA,
|
|
27
|
-
TAG_SELECT,
|
|
28
|
-
TAG_BUTTON,
|
|
29
|
-
TAG_NAV
|
|
30
|
-
] })
|
|
31
|
-
];
|
|
32
|
-
if (options.plugins) plugins.push(...options.plugins);
|
|
33
|
-
return {
|
|
34
|
-
...options,
|
|
35
|
-
plugins
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
//#endregion
|
|
40
|
-
export { withMinimalPreset as t };
|