Skip to content

Commit ad5fac9

Browse files
authored
chore!: remove @rspress/plugin-container-syntax (#2324)
1 parent 558b28d commit ad5fac9

File tree

27 files changed

+1835
-785
lines changed

27 files changed

+1835
-785
lines changed

.changeset/better-eels-tap.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
"@rsbuild/core": "~1.4.0-rc.0",
5656
"@rsbuild/plugin-react": "~1.3.2",
5757
"@rspress/mdx-rs": "0.6.6",
58-
"@rspress/plugin-container-syntax": "workspace:*",
5958
"@rspress/plugin-last-updated": "workspace:*",
6059
"@rspress/plugin-medium-zoom": "workspace:*",
6160
"@rspress/runtime": "workspace:*",
@@ -100,10 +99,12 @@
10099
"@types/node": "^22.8.1",
101100
"@types/react": "^19.1.8",
102101
"@types/react-dom": "^19.1.6",
102+
"mdast-util-mdx-expression": "^2.0.1",
103103
"memfs": "^4.17.2",
104104
"p-map": "^7.0.3",
105105
"postcss": "8.5.6",
106106
"rehype-stringify": "^10.0.1",
107+
"remark-directive": "^4.0.0",
107108
"remark-mdx": "^3.1.0",
108109
"remark-parse": "^11.0.0",
109110
"remark-rehype": "^11.1.2",

packages/core/src/node/PluginDriver.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { pluginContainerSyntax } from '@rspress/plugin-container-syntax';
21
import type {
32
PageIndexInfo,
43
RouteMeta,
@@ -57,9 +56,6 @@ export class PluginDriver {
5756
);
5857
}
5958

60-
// Support the container syntax in markdown/mdx, such as :::tip
61-
this.addPlugin(pluginContainerSyntax());
62-
6359
(config.plugins || []).forEach(plugin => {
6460
this.addPlugin(plugin);
6561
});

packages/core/src/node/mdx/options.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import type { PluginDriver } from '../PluginDriver';
1717
import type { RouteService } from '../route/RouteService';
1818
import { rehypeCodeMeta } from './rehypePlugins/codeMeta';
1919
import { createRehypeShikiOptions } from './rehypePlugins/shiki';
20+
import { remarkContainerSyntax } from './remarkPlugins/containerSyntax';
2021

2122
export async function createMDXOptions(options: {
2223
docDirectory: string;
@@ -63,6 +64,7 @@ export async function createMDXOptions(options: {
6364
remarkPlugins: [
6465
remarkGFM,
6566
remarkPluginToc,
67+
remarkContainerSyntax,
6668
[
6769
remarkPluginNormalizeLink,
6870
{

0 commit comments

Comments
 (0)