File tree 4 files changed +45
-46
lines changed
examples/with-content/src/content
astro/src/vite-plugin-markdown
4 files changed +45
-46
lines changed Original file line number Diff line number Diff line change @@ -42,45 +42,44 @@ declare module 'astro:content' {
42
42
} ;
43
43
44
44
const entryMap : {
45
- "blog" : {
46
- "first-post.md" : {
47
- id : "first-post.md" ,
48
- slug : "first-post" ,
49
- body : string ,
50
- collection : "blog" ,
51
- data : InferEntrySchema < "blog" >
52
- } ,
53
- "markdown-style-guide.md" : {
54
- id : "markdown-style-guide.md" ,
55
- slug : "markdown-style-guide" ,
56
- body : string ,
57
- collection : "blog" ,
58
- data : InferEntrySchema < "blog" >
59
- } ,
60
- "second-post.md" : {
61
- id : "second-post.md" ,
62
- slug : "second-post" ,
63
- body : string ,
64
- collection : "blog" ,
65
- data : InferEntrySchema < "blog" >
66
- } ,
67
- "third-post.md" : {
68
- id : "third-post.md" ,
69
- slug : "third-post" ,
70
- body : string ,
71
- collection : "blog" ,
72
- data : InferEntrySchema < "blog" >
73
- } ,
74
- "using-mdx.mdx" : {
75
- id : "using-mdx.mdx" ,
76
- slug : "using-mdx" ,
77
- body : string ,
78
- collection : "blog" ,
79
- data : InferEntrySchema < "blog" >
80
- } ,
81
- } ,
82
-
45
+ blog : {
46
+ 'first-post.md' : {
47
+ id : 'first-post.md' ;
48
+ slug : 'first-post' ;
49
+ body : string ;
50
+ collection : 'blog' ;
51
+ data : InferEntrySchema < 'blog' > ;
52
+ } ;
53
+ 'markdown-style-guide.md' : {
54
+ id : 'markdown-style-guide.md' ;
55
+ slug : 'markdown-style-guide' ;
56
+ body : string ;
57
+ collection : 'blog' ;
58
+ data : InferEntrySchema < 'blog' > ;
59
+ } ;
60
+ 'second-post.md' : {
61
+ id : 'second-post.md' ;
62
+ slug : 'second-post' ;
63
+ body : string ;
64
+ collection : 'blog' ;
65
+ data : InferEntrySchema < 'blog' > ;
66
+ } ;
67
+ 'third-post.md' : {
68
+ id : 'third-post.md' ;
69
+ slug : 'third-post' ;
70
+ body : string ;
71
+ collection : 'blog' ;
72
+ data : InferEntrySchema < 'blog' > ;
73
+ } ;
74
+ 'using-mdx.mdx' : {
75
+ id : 'using-mdx.mdx' ;
76
+ slug : 'using-mdx' ;
77
+ body : string ;
78
+ collection : 'blog' ;
79
+ data : InferEntrySchema < 'blog' > ;
80
+ } ;
81
+ } ;
83
82
} ;
84
83
85
- type ContentConfig = typeof import ( " ./config" ) ;
84
+ type ContentConfig = typeof import ( ' ./config' ) ;
86
85
}
Original file line number Diff line number Diff line change 1
1
import { renderMarkdown } from '@astrojs/markdown-remark' ;
2
2
import {
3
- safelyGetAstroData ,
4
3
InvalidAstroDataError ,
4
+ safelyGetAstroData ,
5
5
} from '@astrojs/markdown-remark/dist/internal.js' ;
6
6
import fs from 'fs' ;
7
7
import matter from 'gray-matter' ;
Original file line number Diff line number Diff line change 1
1
import { rehypeHeadingIds } from '@astrojs/markdown-remark' ;
2
+ import {
3
+ InvalidAstroDataError ,
4
+ safelyGetAstroData ,
5
+ } from '@astrojs/markdown-remark/dist/internal.js' ;
2
6
import { nodeTypes } from '@mdx-js/mdx' ;
3
7
import type { PluggableList } from '@mdx-js/mdx/lib/core.js' ;
4
8
import type { Options as MdxRollupPluginOptions } from '@mdx-js/rollup' ;
5
9
import type { AstroConfig } from 'astro' ;
6
- import {
7
- safelyGetAstroData ,
8
- InvalidAstroDataError ,
9
- } from '@astrojs/markdown-remark/dist/internal.js' ;
10
10
import type { Literal , MemberExpression } from 'estree' ;
11
11
import { visit as estreeVisit } from 'estree-util-visit' ;
12
12
import { bold , yellow } from 'kleur/colors' ;
@@ -16,7 +16,7 @@ import rehypeRaw from 'rehype-raw';
16
16
import remarkGfm from 'remark-gfm' ;
17
17
import remarkSmartypants from 'remark-smartypants' ;
18
18
import { visit } from 'unist-util-visit' ;
19
- import type { Data , VFile } from 'vfile' ;
19
+ import type { VFile } from 'vfile' ;
20
20
import { MdxOptions } from './index.js' ;
21
21
import { rehypeInjectHeadingsExport } from './rehype-collect-headings.js' ;
22
22
import rehypeMetaString from './rehype-meta-string.js' ;
Original file line number Diff line number Diff line change 1
1
import type { MarkdownRenderingOptions , MarkdownRenderingResult , MarkdownVFile } from './types' ;
2
2
3
+ import { toRemarkInitializeAstroData } from './frontmatter-injection.js' ;
3
4
import { loadPlugins } from './load-plugins.js' ;
4
5
import { rehypeHeadingIds } from './rehype-collect-headings.js' ;
5
6
import rehypeEscape from './rehype-escape.js' ;
@@ -8,7 +9,6 @@ import rehypeIslands from './rehype-islands.js';
8
9
import rehypeJsx from './rehype-jsx.js' ;
9
10
import toRemarkContentRelImageError from './remark-content-rel-image-error.js' ;
10
11
import remarkEscape from './remark-escape.js' ;
11
- import { toRemarkInitializeAstroData } from './frontmatter-injection.js' ;
12
12
import remarkMarkAndUnravel from './remark-mark-and-unravel.js' ;
13
13
import remarkMdxish from './remark-mdxish.js' ;
14
14
import remarkPrism from './remark-prism.js' ;
You can’t perform that action at this time.
0 commit comments