diff --git a/docs/src/data/posts/schema.md b/docs/src/data/posts/schema.md index a396cbee..63ab4298 100644 --- a/docs/src/data/posts/schema.md +++ b/docs/src/data/posts/schema.md @@ -1,3 +1,9 @@ # Schema -Compared to many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how the content is structured. For example this allows you to define the kind of nodes that may occur in the document, and the way they can be nested. +Unlike many other editors, tiptap is based on a [schema](https://prosemirror.net/docs/guide/#schema) that defines how your content is structured. This allows you to define the kind of nodes that may occur in the document, its attributes and the way they can be nested. + +This schema is *very* strict. You can’t use any HTML-element or attribute that is not defined in your schema. + +For example if you paste something like `This is important` into tiptap and you don’t have registed any extension that handles `strong` tags, you’ll only see `This is important`. + + diff --git a/docs/src/layouts/App/base.scss b/docs/src/layouts/App/base.scss index 912222ea..f47ac757 100644 --- a/docs/src/layouts/App/base.scss +++ b/docs/src/layouts/App/base.scss @@ -75,7 +75,7 @@ a { code { font-family: 'JetBrainsMono', monospace; background-color: rgba($colorBlack, 0.05); - padding: 0.1rem 0.5rem; + padding: 0.1rem 0.3rem; border-radius: 0.25rem; color: rgba($colorBlack, 0.7); font-size: 0.9em;