@@ -428,37 +428,19 @@ flags
428
428
.. versionadded :: 0.12.4
429
429
430
430
allowed-elements
431
- **Additional ** HTML tags to allow in the generated output, comma-separated.
432
-
433
- By default, only ``a ``, ``blockquote ``, ``br ``, ``code ``, ``del ``, ``em ``,
434
- ``h1 ``, ``h2 ``, ``h3 ``, ``h4 ``, ``h5 ``, ``h6 ``, ``hr ``, ``ins ``, ``li ``,
435
- ``ol ``, ``p ``, ``pre ``, ``strong ``, ``table ``, ``tbody ``, ``td ``, ``th ``,
436
- ``thead `` and ``ul `` are allowed.
431
+ HTML tags to allow in the generated output, comma-separated.
437
432
438
433
For a more detailed explanation, see :doc: `/docs/reference/markdown-config `.
439
434
440
- .. warning ::
441
-
442
- This option (together with ``allowed-attributes ``) is frequently
443
- misunderstood. Setting e.g. this list to only ``a, blockquote `` will
444
- mean that ``br, code, del, ... `` and all other default allowed tags are
445
- still allowed. You can only add *additional * elements here.
446
-
447
- It is planned to change this behavior, see
448
- `this issue <https://github.com/isso-comments/isso/issues/751 >`_.
449
-
450
- Default: (empty)
435
+ Default: ``a, p, hr, br, ol, ul, li, pre, code, blockquote, del, ins, strong, em, h1, h2, h3, h4, h5, h6, sub, sup, table, thead, tbody, th, td ``
451
436
452
437
allowed-attributes
453
- ** Additional ** HTML attributes (independent from elements) to allow in the
438
+ HTML attributes (independent from elements) to allow in the
454
439
generated output, comma-separated.
455
440
456
- By default, only ``align `` and ``href `` are allowed (same caveats as for
457
- ``allowed-elements `` above apply)
458
-
459
441
For a more detailed explanation, see :doc: `/docs/reference/markdown-config `.
460
442
461
- Default: (empty)
443
+ Default: `` align, href ``
462
444
463
445
.. note :: To allow images in comments, you need to add
464
446
``allowed-elements = img `` and *also * ``allowed-attributes = src ``.
0 commit comments