[pull] master from executablebooks:master by pull[bot] · Pull Request #10 · sysfce2/python-mdit_py_plugins · GitHub
Skip to content
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
2 changes: 1 addition & 1 deletion mdit_py_plugins/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.6.0"
__version__ = "0.6.1"
5 changes: 3 additions & 2 deletions mdit_py_plugins/field_list/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ def _fieldlist_rule(
while _line < endLine:
# if start_of_content < end_of_content, then non-empty line
if (state.bMarks[_line] + state.tShift[_line]) < state.eMarks[_line]:
if state.tShift[_line] <= 0:
# the line has no indent, so it's the end of the field
if state.tShift[_line] <= state.blkIndent:
# the line is not indented relative to the field marker,
# so it's the end of the field body
break
block_indent = (
state.tShift[_line]
Expand Down
168 changes: 168 additions & 0 deletions tests/fixtures/field_list.md
Loading