@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.
Files changed (40) hide show
  1. package/dist/index.cjs +300 -0
  2. package/dist/index.d.ts +16 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +14818 -0
  5. package/dist/inline-prediction/completer.d.ts +49 -0
  6. package/dist/inline-prediction/completer.d.ts.map +1 -0
  7. package/dist/inline-prediction/index.d.ts +3 -0
  8. package/dist/inline-prediction/index.d.ts.map +1 -0
  9. package/dist/inline-prediction/types.d.ts +51 -0
  10. package/dist/inline-prediction/types.d.ts.map +1 -0
  11. package/dist/output-rate/controller.d.ts +75 -0
  12. package/dist/output-rate/controller.d.ts.map +1 -0
  13. package/dist/output-rate/index.d.ts +4 -0
  14. package/dist/output-rate/index.d.ts.map +1 -0
  15. package/dist/output-rate/types.d.ts +30 -0
  16. package/dist/output-rate/types.d.ts.map +1 -0
  17. package/dist/parse.d.ts +42 -0
  18. package/dist/parse.d.ts.map +1 -0
  19. package/dist/plugins/index.d.ts +5 -0
  20. package/dist/plugins/index.d.ts.map +1 -0
  21. package/dist/plugins/rehype-image-size.d.ts +9 -0
  22. package/dist/plugins/rehype-image-size.d.ts.map +1 -0
  23. package/dist/processor.d.ts +20 -0
  24. package/dist/processor.d.ts.map +1 -0
  25. package/dist/streaming/block-cache.d.ts +53 -0
  26. package/dist/streaming/block-cache.d.ts.map +1 -0
  27. package/dist/streaming/block-splitter.d.ts +39 -0
  28. package/dist/streaming/block-splitter.d.ts.map +1 -0
  29. package/dist/streaming/index.d.ts +10 -0
  30. package/dist/streaming/index.d.ts.map +1 -0
  31. package/dist/streaming/stream-buffer.d.ts +61 -0
  32. package/dist/streaming/stream-buffer.d.ts.map +1 -0
  33. package/dist/streaming/streaming-parser.d.ts +7 -0
  34. package/dist/streaming/streaming-parser.d.ts.map +1 -0
  35. package/dist/streaming/types.d.ts +104 -0
  36. package/dist/streaming/types.d.ts.map +1 -0
  37. package/dist/styles.css +522 -0
  38. package/dist/types.d.ts +32 -0
  39. package/dist/types.d.ts.map +1 -0
  40. package/package.json +60 -0
@@ -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"}