diff --git a/README.md b/README.md
index 78f0b2b..bdd6916 100644
--- a/README.md
+++ b/README.md
@@ -23,25 +23,25 @@ To install the plugin:
With `npm`:
```bash
-npm install remark-card --save-dev
+npm install remark-card
```
With `yarn`:
```bash
-yarn add --dev remark-card
+yarn add remark-card
```
With `pnpm`:
```bash
-pnpm add -D remark-card
+pnpm add remark-card
```
With `bun`:
```bash
-bun install -D remark-card
+bun install remark-card
```
### Usage
@@ -90,22 +90,32 @@ Yields:
```html
-
-
Card content
+
+
+
+
Card content
```
At the moment, it takes the following option(s):
```ts
-export interface Config {
+export type Config = {
// Whether or not to use custom HTML tags for both `card` and `card-grid`. By default, it's set to `false`.
- customHTMLTags: {
- enabled: boolean
- }
+ customHTMLTags?: {
+ enabled: boolean;
+ };
+ cardGridClass?: string;
+ cardClass?: string;
+ imageContainerClass?: string;
+ contentContainerClass?: string;
}
```
+> [!QUESTION]
+> **Why do we need those card & card grid class options?**
+> \- Since [MDX 2](https://mdxjs.com/blog/v2/), the compiler has come to throw an error "Could not parse expression with acorn: $error" whenever there are unescaped curly braces and the expression inside them is invalid. This breaking change leads the directive syntax (`:::xxx{a=b}`) to cause the error, so the options are like an escape hatch for that situation.
+
For more possible patterns and in-depths explanations on the generic syntax(e.g., `:::something[...]{...}`), see `./test/index.test.ts` and [this page](https://talk.commonmark.org/t/generic-directives-plugins-syntax/444/1), respectively.
### Syntax
@@ -125,8 +135,10 @@ Yields:
```html
-
-
Card content
+
+
+
+
Card content
```
@@ -158,22 +170,22 @@ Yields:
```html