@astrojs/markdown-remark 0.7.0 → 0.8.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/.turbo/turbo-build.log +5 -0
- package/CHANGELOG.md +10 -4
- package/dist/index.d.ts +2 -2
- package/dist/load-plugins.d.ts +0 -0
- package/dist/rehype-collect-headers.d.ts +0 -0
- package/dist/rehype-escape.d.ts +0 -0
- package/dist/rehype-expressions.d.ts +0 -0
- package/dist/rehype-islands.d.ts +0 -0
- package/dist/rehype-jsx.d.ts +0 -0
- package/dist/remark-expressions.d.ts +0 -0
- package/dist/remark-jsx.d.ts +0 -0
- package/dist/remark-prism.d.ts +0 -0
- package/dist/remark-scoped-styles.d.ts +0 -0
- package/dist/remark-shiki.d.ts +0 -0
- package/dist/remark-slug.d.ts +0 -0
- package/dist/remark-unwrap.d.ts +0 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/types.ts +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
[32m@astrojs/markdown-remark:build: [0mcache hit, replaying output [2m6e22a141f5baff6f[0m
|
|
2
|
+
[32m@astrojs/markdown-remark:build: [0m
|
|
3
|
+
[32m@astrojs/markdown-remark:build: [0m> @astrojs/markdown-remark@0.8.0 build /Users/fks/Code/astro/packages/markdown/remark
|
|
4
|
+
[32m@astrojs/markdown-remark:build: [0m> astro-scripts build "src/**/*.ts" && tsc -p tsconfig.json
|
|
5
|
+
[32m@astrojs/markdown-remark:build: [0m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @astrojs/markdown-remark
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e425f896`](https://github.com/withastro/astro/commit/e425f896b668d98033ad3b998b50c1f28bc7f6ee) Thanks [@FredKSchott](https://github.com/FredKSchott)! - Update config options to resepect [RFC0019](https://github.com/withastro/rfcs/blob/main/proposals/0019-config-finalization.md)
|
|
8
|
+
|
|
3
9
|
## 0.7.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -187,10 +193,10 @@
|
|
|
187
193
|
|
|
188
194
|
```js
|
|
189
195
|
export default {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
markdownOptions: {
|
|
197
|
+
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
|
|
198
|
+
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
|
|
199
|
+
},
|
|
194
200
|
};
|
|
195
201
|
```
|
|
196
202
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AstroMarkdownOptions, MarkdownRenderingOptions } from './types';
|
|
2
|
-
export { AstroMarkdownOptions, MarkdownRenderingOptions };
|
|
1
|
+
import type { AstroMarkdownOptions, MarkdownRenderingOptions, ShikiConfig, Plugin } from './types';
|
|
2
|
+
export { AstroMarkdownOptions, MarkdownRenderingOptions, ShikiConfig, Plugin };
|
|
3
3
|
/** Internal utility for rendering a full markdown file and extracting Frontmatter data */
|
|
4
4
|
export declare function renderMarkdownWithFrontmatter(contents: string, opts?: MarkdownRenderingOptions | null): Promise<{
|
|
5
5
|
frontmatter: {
|
package/dist/load-plugins.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/rehype-escape.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/rehype-islands.d.ts
CHANGED
|
File without changes
|
package/dist/rehype-jsx.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/remark-jsx.d.ts
CHANGED
|
File without changes
|
package/dist/remark-prism.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/remark-shiki.d.ts
CHANGED
|
File without changes
|
package/dist/remark-slug.d.ts
CHANGED
|
File without changes
|
package/dist/remark-unwrap.d.ts
CHANGED
|
File without changes
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as unified from 'unified';
|
|
2
2
|
import type { ShikiConfig } from './remark-shiki';
|
|
3
|
+
export { ShikiConfig };
|
|
3
4
|
export declare type Plugin = string | [string, any] | unified.Plugin | [unified.Plugin, any];
|
|
4
5
|
export interface AstroMarkdownOptions {
|
|
5
6
|
mode?: 'md' | 'mdx';
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AstroMarkdownOptions, MarkdownRenderingOptions } from './types';
|
|
1
|
+
import type { AstroMarkdownOptions, MarkdownRenderingOptions, ShikiConfig, Plugin } from './types';
|
|
2
2
|
|
|
3
3
|
import createCollectHeaders from './rehype-collect-headers.js';
|
|
4
4
|
import scopedStyles from './remark-scoped-styles.js';
|
|
@@ -20,7 +20,7 @@ import rehypeStringify from 'rehype-stringify';
|
|
|
20
20
|
import rehypeRaw from 'rehype-raw';
|
|
21
21
|
import matter from 'gray-matter';
|
|
22
22
|
|
|
23
|
-
export { AstroMarkdownOptions, MarkdownRenderingOptions };
|
|
23
|
+
export { AstroMarkdownOptions, MarkdownRenderingOptions, ShikiConfig, Plugin };
|
|
24
24
|
|
|
25
25
|
/** Internal utility for rendering a full markdown file and extracting Frontmatter data */
|
|
26
26
|
export async function renderMarkdownWithFrontmatter(contents: string, opts?: MarkdownRenderingOptions | null) {
|