Skip to content

Commit

Permalink
Don't strip newlines (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Aug 17, 2020
1 parent 8b9dc33 commit 3d1a211
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/src/markdown/about/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.7.5

- **FIX**: Don't strip newlines from content that has `nl2br` disabled.

## 3.7.4

- **FIX**: Fix plain text syntax highlighting not always being applied correctly as the fallback.
Expand Down
4 changes: 2 additions & 2 deletions st3/mdpopups/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def md2html(
]
)

# Use legacy method to determine if `nl2b` should be used
# Use legacy method to determine if `nl2br` should be used
if nl2br:
extensions.append('markdown.extensions.nl2br')
else:
Expand All @@ -438,7 +438,7 @@ def md2html(
extension_configs=configs,
sublime_hl=sublime_hl,
allow_code_wrap=fm.get('allow_code_wrap', allow_code_wrap)
).convert(_markup_template(markup, template_vars, template_env_options)).replace('"', '"').replace('\n', '')
).convert(_markup_template(markup, template_vars, template_env_options)).replace('"', '"')


def color_box(
Expand Down
2 changes: 1 addition & 1 deletion st3/mdpopups/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Version."""

_version_info = (3, 7, 4)
_version_info = (3, 7, 5)
__version__ = '.'.join([str(x) for x in _version_info])


Expand Down

0 comments on commit 3d1a211

Please sign in to comment.