@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.
@@ -0,0 +1,5 @@
1
+ @astrojs/markdown-remark:build: cache hit, replaying output 6e22a141f5baff6f
2
+ @astrojs/markdown-remark:build: 
3
+ @astrojs/markdown-remark:build: > @astrojs/markdown-remark@0.8.0 build /Users/fks/Code/astro/packages/markdown/remark
4
+ @astrojs/markdown-remark:build: > astro-scripts build "src/**/*.ts" && tsc -p tsconfig.json
5
+ @astrojs/markdown-remark:build: 
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
- markdownOptions: {
191
- remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
192
- rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
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: {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/markdown-remark",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
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) {
package/src/types.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
 
4
5
  export type Plugin = string | [string, any] | unified.Plugin | [unified.Plugin, any];
5
6