Fixed #2913: Disabled Critic extension to omit zero-width whitespace characters

This commit is contained in:
squidfunk
2021-08-07 11:10:15 +02:00
parent 2dc67c9040
commit 51d4920a2e
2 changed files with 20 additions and 16 deletions

View File

@@ -121,20 +121,6 @@ document:
_Example_: _Example_:
``` markdown ``` markdown
Text can be {--deleted--} and replacement text {++added++}. This can also be
combined into {~~one~>a single~~} operation. {==Highlighting==} is also
possible {>>and comments can be added inline<<}.
{==
Formatting can also be applied to blocks, by putting the opening and closing
tags on separate lines and adding new lines between the tags and the content.
==}
```
_Result_:
Text can be {--deleted--} and replacement text {++added++}. This can also be Text can be {--deleted--} and replacement text {++added++}. This can also be
combined into {~~one~>a single~~} operation. {==Highlighting==} is also combined into {~~one~>a single~~} operation. {==Highlighting==} is also
possible {>>and comments can be added inline<<}. possible {>>and comments can be added inline<<}.
@@ -145,6 +131,25 @@ Formatting can also be applied to blocks, by putting the opening and closing
tags on separate lines and adding new lines between the tags and the content. tags on separate lines and adding new lines between the tags and the content.
==} ==}
```
_Result_:
Text can be <del class="critic">deleted</del> and replacement text
<ins class="critic">added</ins>. This can also be combined into
<del class="critic">one</del><ins class="critic">a single</ins> operation.
<mark class="critic">Highlighting</mark> is also possible
<span class="critic comment">and comments can be added inline</span>.
<div>
<mark class="critic block">
<p>
Formatting can also be applied to blocks, by putting the opening and
closing tags on separate lines and adding new lines between the tags and
the content.
</p>
</mark>
</div>
### Highlighting text ### Highlighting text

View File

@@ -55,7 +55,7 @@ theme:
# - header.autohide # - header.autohide
# - navigation.expand # - navigation.expand
# - navigation.indexes # - navigation.indexes
- navigation.instant # - navigation.instant
- navigation.sections - navigation.sections
- navigation.tabs - navigation.tabs
# - navigation.tabs.sticky # - navigation.tabs.sticky
@@ -142,7 +142,6 @@ markdown_extensions:
- pymdownx.betterem: - pymdownx.betterem:
smart_enable: all smart_enable: all
- pymdownx.caret - pymdownx.caret
- pymdownx.critic
- pymdownx.details - pymdownx.details
- pymdownx.emoji: - pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji emoji_index: !!python/name:materialx.emoji.twemoji