Skip to content

Commit

Permalink
Fixed #2913: Disabled Critic extension to omit zero-width whitespace …
Browse files Browse the repository at this point in the history
…characters
  • Loading branch information
squidfunk committed Aug 7, 2021
1 parent 2dc67c9 commit 51d4920
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
33 changes: 19 additions & 14 deletions docs/reference/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ document:
_Example_:

``` 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
combined into {~~one~>a single~~} operation. {==Highlighting==} is also
possible {>>and comments can be added inline<<}.
Expand All @@ -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.
==}
```

_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

Expand Down
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ theme:
# - header.autohide
# - navigation.expand
# - navigation.indexes
- navigation.instant
# - navigation.instant
- navigation.sections
- navigation.tabs
# - navigation.tabs.sticky
Expand Down Expand Up @@ -142,7 +142,6 @@ markdown_extensions:
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
Expand Down

0 comments on commit 51d4920

Please sign in to comment.