Merge pull request #1 from mmailaender/docs-tailwind-intellisense-configuration

Added Tailwind Intellisense configuration to docs
This commit is contained in:
Micha Mailänder 2023-08-23 16:27:40 +02:00 committed by GitHub
commit 1793c728c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,14 @@ The editor works fine with Tailwind CSS, too. Find an example thats styled wi
https://embed.tiptap.dev/preview/Experiments/Tailwind
#### Intellisense
If you're using [TailwindCSS Intellisense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss) add the following snippet to your `.vscode/setting.json` to add intellisense support inside TipTap objects:
```json
"tailwindCSS.experimental.classRegex": [
"class:\\s*?[\"'`]([^\"'`]*).*?,"
]
```
## Option 3: Customize the HTML
Or you can customize the markup for extensions. The following example will make a custom bold extension that doesnt render a `<strong>` tag, but a `<b>` tag: