Skip to content

Commit

Permalink
Merge pull request #3516 from bryanwweber/fix-3512
Browse files Browse the repository at this point in the history
Add math CSS class to typogrify ignores
  • Loading branch information
Kwpolska committed Feb 18, 2021
2 parents f86046f + 0bca8f9 commit 40e3312
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ Features
* New ``auto_command_starting`` signal when ``nikola auto`` is
starting

Bugfixes
--------

* Typogrify ignores ``div`` elements with ``.math`` CSS class.
(Issue #3512)

New in v8.1.3
=============

Expand Down
2 changes: 1 addition & 1 deletion nikola/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def minify_lines(data):
def _run_typogrify(data, typogrify_filters, ignore_tags=None):
"""Run typogrify with ignore support."""
if ignore_tags is None:
ignore_tags = ["title"]
ignore_tags = ["title", ".math"]

data = _normalize_html(data)

Expand Down

0 comments on commit 40e3312

Please sign in to comment.