Skip to content

Commit

Permalink
Fix codeblocks added in wrong places rewriting relative URLs (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja committed Sep 9, 2021
1 parent 749729e commit d905089
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.2.2
current_version = 3.2.3

[bumpversion:file:mkdocs_include_markdown_plugin/__init__.py]

Expand Down
2 changes: 1 addition & 1 deletion mkdocs_include_markdown_plugin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__title__ = 'mkdocs_include_markdown_plugin'
__version__ = '3.2.2'
__version__ = '3.2.3'
4 changes: 2 additions & 2 deletions mkdocs_include_markdown_plugin/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ def process_current_paragraph_lines():
lstripped_line.startswith('~~~'),
]):
_inside_fcodeblock = True
_current_fcodeblock_delimiter = line[:3]
lines.append(line)
_current_fcodeblock_delimiter = lstripped_line[:3]
if current_paragraph:
process_current_paragraph_lines()
current_paragraph = ''
lines.append(line)
elif (
# 5 and 2 including newline character
(line.startswith(' ') and len(line) == 5) or
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mkdocs_include_markdown_plugin
version = 3.2.2
version = 3.2.3
description = Mkdocs Markdown includer plugin.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit d905089

Please sign in to comment.