Skip to content

Commit

Permalink
Merge pull request #1 from mmailaender/docs-tailwind-intellisense-con…
Browse files Browse the repository at this point in the history
…figuration

Added Tailwind Intellisense configuration to docs
  • Loading branch information
mmailaender authored Aug 23, 2023
2 parents 028411e + a0829f5 commit 1793c72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/guide/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ The editor works fine with Tailwind CSS, too. Find an example that’s 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 doesn’t render a `<strong>` tag, but a `<b>` tag:

Expand Down

0 comments on commit 1793c72

Please sign in to comment.