Skip to content

Commit

Permalink
Add a list of supported node and mark types to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Jun 10, 2024
1 parent 3783b18 commit 3c59cfb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ Paragraphs cannot be removed at the moment. Note that the backend doesn't
sanitize the content to ensure that the HTML doesn't contain only the provided
tags, that's out of scope for now.

``doc``, ``paragraph`` and ``text`` are always in the allowlist.

The supported node types are ``heading``, ``blockquote``, ``horizontal_rule``
and ``hard_break``.

The supported mark types are ``link``, ``strong``, ``em``, ``underline``,
``strikethrough``, ``sub`` and ``sup``


Usage outside the Django admin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 3c59cfb

Please sign in to comment.