summaryrefslogtreecommitdiff
path: root/packages/markdown/remark
diff options
context:
space:
mode:
Diffstat (limited to 'packages/markdown/remark')
-rw-r--r--packages/markdown/remark/CHANGELOG.md8
-rw-r--r--packages/markdown/remark/package.json6
-rw-r--r--packages/markdown/remark/src/index.ts10
-rw-r--r--packages/markdown/remark/src/types.ts1
4 files changed, 14 insertions, 11 deletions
diff --git a/packages/markdown/remark/CHANGELOG.md b/packages/markdown/remark/CHANGELOG.md
index c4ee870b4..b36beb0eb 100644
--- a/packages/markdown/remark/CHANGELOG.md
+++ b/packages/markdown/remark/CHANGELOG.md
@@ -1,5 +1,13 @@
# @astrojs/markdown-remark
+## 3.0.0-beta.0
+
+### Patch Changes
+
+- Updated dependencies [[`1eae2e3f7`](https://github.com/withastro/astro/commit/1eae2e3f7d693c9dfe91c8ccfbe606d32bf2fb81), [`76ddef19c`](https://github.com/withastro/astro/commit/76ddef19ccab6e5f7d3a5740cd41acf10e334b38), [`9b4f70a62`](https://github.com/withastro/astro/commit/9b4f70a629f55e461759ba46f68af7097a2e9215), [`3fdf509b2`](https://github.com/withastro/astro/commit/3fdf509b2731a9b2f972d89291e57cf78d62c769), [`2f951cd40`](https://github.com/withastro/astro/commit/2f951cd403dfcc2c3ca6aae618ae3e1409516e32), [`c022a4217`](https://github.com/withastro/astro/commit/c022a4217a805d223c1494e9eda4e48bbf810388), [`67becaa58`](https://github.com/withastro/astro/commit/67becaa580b8f787df58de66b7008b7098f1209c), [`bc37331d8`](https://github.com/withastro/astro/commit/bc37331d8154e3e95a8df9131e4e014e78a7a9e7), [`dfc2d93e3`](https://github.com/withastro/astro/commit/dfc2d93e3c645995379358fabbdfa9aab99f43d8), [`3dc1ca2fa`](https://github.com/withastro/astro/commit/3dc1ca2fac8d9965cc5085a5d09e72ed87b4281a), [`1be84dfee`](https://github.com/withastro/astro/commit/1be84dfee3ce8e6f5cc624f99aec4e980f6fde37), [`35f01df79`](https://github.com/withastro/astro/commit/35f01df797d23315f2bee2fc3fd795adb0559c58), [`3fdf509b2`](https://github.com/withastro/astro/commit/3fdf509b2731a9b2f972d89291e57cf78d62c769), [`78de801f2`](https://github.com/withastro/astro/commit/78de801f21fd4ca1653950027d953bf08614566b), [`59d6e569f`](https://github.com/withastro/astro/commit/59d6e569f63e175c97e82e94aa7974febfb76f7c), [`7723c4cc9`](https://github.com/withastro/astro/commit/7723c4cc93298c2e6530e55da7afda048f22cf81), [`fb5cd6b56`](https://github.com/withastro/astro/commit/fb5cd6b56dc27a71366ed5e1ab8bfe9b8f96bac5), [`631b9c410`](https://github.com/withastro/astro/commit/631b9c410d5d66fa384674027ba95d69ebb5063f)]:
+ - @astrojs/prism@3.0.0-beta.0
+ - astro@3.0.0-beta.0
+
## 2.2.1
### Patch Changes
diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json
index 0c4a353bb..b9d53a3ea 100644
--- a/packages/markdown/remark/package.json
+++ b/packages/markdown/remark/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/markdown-remark",
- "version": "2.2.1",
+ "version": "3.0.0-beta.0",
"type": "module",
"author": "withastro",
"license": "MIT",
@@ -28,10 +28,10 @@
"test": "mocha --exit --timeout 20000"
},
"peerDependencies": {
- "astro": "workspace:^2.5.0"
+ "astro": "workspace:^3.0.0-beta.0"
},
"dependencies": {
- "@astrojs/prism": "^2.1.2",
+ "@astrojs/prism": "^3.0.0-beta.0",
"github-slugger": "^1.5.0",
"import-meta-resolve": "^2.2.2",
"rehype-raw": "^6.1.1",
diff --git a/packages/markdown/remark/src/index.ts b/packages/markdown/remark/src/index.ts
index aa02f8ea9..43ab885b6 100644
--- a/packages/markdown/remark/src/index.ts
+++ b/packages/markdown/remark/src/index.ts
@@ -95,10 +95,8 @@ export async function renderMarkdown(
parser.use([remarkPrism(scopedClassName)]);
}
- if (opts.experimentalAssets) {
- // Apply later in case user plugins resolve relative image paths
- parser.use([remarkCollectImages]);
- }
+ // Apply later in case user plugins resolve relative image paths
+ parser.use([remarkCollectImages]);
}
parser.use([
@@ -116,9 +114,7 @@ export async function renderMarkdown(
parser.use([[plugin, pluginOpts]]);
});
- if (opts.experimentalAssets) {
- parser.use(rehypeImages());
- }
+ parser.use(rehypeImages());
if (!isPerformanceBenchmark) {
parser.use([rehypeHeadingIds]);
}
diff --git a/packages/markdown/remark/src/types.ts b/packages/markdown/remark/src/types.ts
index 2f2d36de7..6d8ecf8f2 100644
--- a/packages/markdown/remark/src/types.ts
+++ b/packages/markdown/remark/src/types.ts
@@ -67,7 +67,6 @@ export interface MarkdownRenderingOptions extends AstroMarkdownOptions {
};
/** Used for frontmatter injection plugins */
frontmatter?: Record<string, any>;
- experimentalAssets?: boolean;
}
export interface MarkdownHeading {