From 56a63894411ad2f0f27ecdc674cc6e63b9c59a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 20 Apr 2020 14:07:20 +0200 Subject: [PATCH] update text --- docs/src/data/posts/schema.md | 8 +++++++- docs/src/layouts/App/base.scss | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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;