@superlc/md-core 0.1.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/dist/index.cjs +300 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14818 -0
- package/dist/inline-prediction/completer.d.ts +49 -0
- package/dist/inline-prediction/completer.d.ts.map +1 -0
- package/dist/inline-prediction/index.d.ts +3 -0
- package/dist/inline-prediction/index.d.ts.map +1 -0
- package/dist/inline-prediction/types.d.ts +51 -0
- package/dist/inline-prediction/types.d.ts.map +1 -0
- package/dist/output-rate/controller.d.ts +75 -0
- package/dist/output-rate/controller.d.ts.map +1 -0
- package/dist/output-rate/index.d.ts +4 -0
- package/dist/output-rate/index.d.ts.map +1 -0
- package/dist/output-rate/types.d.ts +30 -0
- package/dist/output-rate/types.d.ts.map +1 -0
- package/dist/parse.d.ts +42 -0
- package/dist/parse.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/rehype-image-size.d.ts +9 -0
- package/dist/plugins/rehype-image-size.d.ts.map +1 -0
- package/dist/processor.d.ts +20 -0
- package/dist/processor.d.ts.map +1 -0
- package/dist/streaming/block-cache.d.ts +53 -0
- package/dist/streaming/block-cache.d.ts.map +1 -0
- package/dist/streaming/block-splitter.d.ts +39 -0
- package/dist/streaming/block-splitter.d.ts.map +1 -0
- package/dist/streaming/index.d.ts +10 -0
- package/dist/streaming/index.d.ts.map +1 -0
- package/dist/streaming/stream-buffer.d.ts +61 -0
- package/dist/streaming/stream-buffer.d.ts.map +1 -0
- package/dist/streaming/streaming-parser.d.ts +7 -0
- package/dist/streaming/streaming-parser.d.ts.map +1 -0
- package/dist/streaming/types.d.ts +104 -0
- package/dist/streaming/types.d.ts.map +1 -0
- package/dist/styles.css +522 -0
- package/dist/types.d.ts +32 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +60 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @superlc/md-core
|
|
3
|
+
* 基于 unified 的 Markdown 解析核心库
|
|
4
|
+
*/
|
|
5
|
+
export { createProcessor, defaultProcessor } from './processor';
|
|
6
|
+
export { parse, parseToHast, parseToHtml } from './parse';
|
|
7
|
+
export type { ProcessorOptions, ParseOptions, PluginConfig } from './types';
|
|
8
|
+
export type { Root, Element, Text, Comment } from 'hast';
|
|
9
|
+
export { createStreamingParser, BlockSplitter, BlockCache, StreamBuffer, createInitialBufferState } from './streaming';
|
|
10
|
+
export type { StreamingParser, StreamingParserOptions, ParserState, ParserStats, BlockInfo, BlockType, StreamTokenType, StreamBufferState, } from './streaming';
|
|
11
|
+
export { OutputRateController, RATE_PRESETS, DEFAULT_RATE } from './output-rate';
|
|
12
|
+
export type { OutputRate, OutputRatePreset, OutputRateCustom, OutputRateStatus, } from './output-rate';
|
|
13
|
+
export { InlineCompleter, DEFAULT_INLINE_TYPES } from './inline-prediction';
|
|
14
|
+
export type { InlineType, Completion, CompletionResult, InlinePredictionOptions, } from './inline-prediction';
|
|
15
|
+
export { rehypeImageSize } from './plugins';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5E,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGzD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AACvH,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,eAAe,EACf,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjF,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC5E,YAAY,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|