@quartz-community/remark-obsidian 2.1.1 → 2.2.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/LICENSE-THIRD-PARTY.md +47 -0
- package/README.md +62 -24
- package/dist/index.d.ts +93 -2
- package/dist/index.js +1740 -1081
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +25 -0
- package/dist/legacy.js +8565 -0
- package/dist/legacy.js.map +1 -0
- package/package.json +16 -1
package/dist/legacy.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Root } from 'mdast';
|
|
2
|
+
import { RemarkObsidianOptions } from './index.js';
|
|
3
|
+
export { Callout, CalloutTitle, Comment, Highlight, InlineFootnote, Tag, Wikilink } from './index.js';
|
|
4
|
+
import 'unist';
|
|
5
|
+
import 'micromark-util-types';
|
|
6
|
+
import 'mdast-util-from-markdown';
|
|
7
|
+
import 'mdast-util-to-markdown';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The `legacy` reading as a plain function, for a consumer that only reads.
|
|
11
|
+
*
|
|
12
|
+
* `remarkObsidian` holds both presets and every writer, so importing it bundles `strict`'s
|
|
13
|
+
* micromark chain and the `toMarkdown` handlers whichever preset runs, and no `sideEffects` flag
|
|
14
|
+
* or module split can drop them: one function reaches them all. This entry reaches only the
|
|
15
|
+
* remark-parse 8 path. It takes the same options with the same defaults and returns the tree
|
|
16
|
+
* `unified().use(remarkObsidian, options).parse(text)` returns, which
|
|
17
|
+
* `test/legacy-entry.test.ts` holds over the corpus.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
/** The main entry's options, documented there, less the two only it reads. */
|
|
21
|
+
type LegacyParseOptions = Omit<RemarkObsidianOptions, "preset" | "escapedLineBreaks">;
|
|
22
|
+
/** Reads `text` as the `legacy` preset does. `text` is the whole input; no processor is involved. */
|
|
23
|
+
declare function parse(text: string, options?: LegacyParseOptions): Root;
|
|
24
|
+
|
|
25
|
+
export { type LegacyParseOptions, parse };
|