@astrojs/markdown-remark 6.3.1 → 6.3.3

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.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import type { AstroMarkdownOptions, AstroMarkdownProcessorOptions, MarkdownProcessor, SyntaxHighlightConfig } from './types.js';
2
+ export { extractFrontmatter, isFrontmatterValid, type ParseFrontmatterOptions, type ParseFrontmatterResult, parseFrontmatter, } from './frontmatter.js';
2
3
  export { rehypeHeadingIds } from './rehype-collect-headings.js';
3
- export { remarkCollectImages } from './remark-collect-images.js';
4
4
  export { rehypePrism } from './rehype-prism.js';
5
5
  export { rehypeShiki } from './rehype-shiki.js';
6
- export { isFrontmatterValid, extractFrontmatter, parseFrontmatter, type ParseFrontmatterOptions, type ParseFrontmatterResult, } from './frontmatter.js';
7
- export { createShikiHighlighter, type ShikiHighlighter, type CreateShikiHighlighterOptions, type ShikiHighlighterHighlightOptions, } from './shiki.js';
6
+ export { remarkCollectImages } from './remark-collect-images.js';
7
+ export { type CreateShikiHighlighterOptions, createShikiHighlighter, type ShikiHighlighter, type ShikiHighlighterHighlightOptions, } from './shiki.js';
8
8
  export * from './types.js';
9
9
  export declare const syntaxHighlightDefaults: Required<SyntaxHighlightConfig>;
10
10
  export declare const markdownConfigDefaults: Required<AstroMarkdownOptions>;
package/dist/index.js CHANGED
@@ -1,8 +1,3 @@
1
- import { loadPlugins } from "./load-plugins.js";
2
- import { rehypeHeadingIds } from "./rehype-collect-headings.js";
3
- import { rehypePrism } from "./rehype-prism.js";
4
- import { rehypeShiki } from "./rehype-shiki.js";
5
- import { remarkCollectImages } from "./remark-collect-images.js";
6
1
  import rehypeRaw from "rehype-raw";
7
2
  import rehypeStringify from "rehype-stringify";
8
3
  import remarkGfm from "remark-gfm";
@@ -12,16 +7,21 @@ import remarkSmartypants from "remark-smartypants";
12
7
  import { unified } from "unified";
13
8
  import { VFile } from "vfile";
14
9
  import { defaultExcludeLanguages } from "./highlight.js";
10
+ import { loadPlugins } from "./load-plugins.js";
11
+ import { rehypeHeadingIds } from "./rehype-collect-headings.js";
15
12
  import { rehypeImages } from "./rehype-images.js";
16
- import { rehypeHeadingIds as rehypeHeadingIds2 } from "./rehype-collect-headings.js";
17
- import { remarkCollectImages as remarkCollectImages2 } from "./remark-collect-images.js";
18
- import { rehypePrism as rehypePrism2 } from "./rehype-prism.js";
19
- import { rehypeShiki as rehypeShiki2 } from "./rehype-shiki.js";
13
+ import { rehypePrism } from "./rehype-prism.js";
14
+ import { rehypeShiki } from "./rehype-shiki.js";
15
+ import { remarkCollectImages } from "./remark-collect-images.js";
20
16
  import {
21
- isFrontmatterValid,
22
17
  extractFrontmatter,
18
+ isFrontmatterValid,
23
19
  parseFrontmatter
24
20
  } from "./frontmatter.js";
21
+ import { rehypeHeadingIds as rehypeHeadingIds2 } from "./rehype-collect-headings.js";
22
+ import { rehypePrism as rehypePrism2 } from "./rehype-prism.js";
23
+ import { rehypeShiki as rehypeShiki2 } from "./rehype-shiki.js";
24
+ import { remarkCollectImages as remarkCollectImages2 } from "./remark-collect-images.js";
25
25
  import {
26
26
  createShikiHighlighter
27
27
  } from "./shiki.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/markdown-remark",
3
- "version": "6.3.1",
3
+ "version": "6.3.3",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -35,20 +35,20 @@
35
35
  "rehype-stringify": "^10.0.1",
36
36
  "remark-gfm": "^4.0.1",
37
37
  "remark-parse": "^11.0.0",
38
- "remark-rehype": "^11.1.1",
38
+ "remark-rehype": "^11.1.2",
39
39
  "remark-smartypants": "^3.0.2",
40
- "shiki": "^3.0.0",
41
- "smol-toml": "^1.3.1",
40
+ "shiki": "^3.2.1",
41
+ "smol-toml": "^1.3.4",
42
42
  "unified": "^11.0.5",
43
43
  "unist-util-remove-position": "^5.0.0",
44
44
  "unist-util-visit": "^5.0.0",
45
45
  "unist-util-visit-parents": "^6.0.1",
46
46
  "vfile": "^6.0.3",
47
47
  "@astrojs/internal-helpers": "0.6.1",
48
- "@astrojs/prism": "3.2.0"
48
+ "@astrojs/prism": "3.3.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@types/estree": "^1.0.6",
51
+ "@types/estree": "^1.0.7",
52
52
  "@types/hast": "^3.0.4",
53
53
  "@types/js-yaml": "^4.0.9",
54
54
  "@types/mdast": "^4.0.4",