Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't strip newlines #100

Merged
merged 1 commit into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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