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

enable blank line between lists in WikiCreole #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 3 additions & 3 deletions modules/creole.pl
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,8 @@ sub CreoleListAndNewLineRule {
# # numbered list
# * bullet list (nestable; needs space when nested to disambiguate from bold)
if (($bol and m/\G[ \t]*([#*])[ \t]*/cg) or
($is_in_list_item and m/\G[ \t]*\n+[ \t]*(#+)[ \t]*/cg) or
($is_in_list_item and m/\G[ \t]*\n+[ \t]*(\*+)[ \t]+/cg)) {
($is_in_list_item and m/\G[ \t]*\n[ \t]*(#+)[ \t]*/cg) or
($is_in_list_item and m/\G[ \t]*\n[ \t]*(\*+)[ \t]+/cg)) {
# Note: the first line of this return statement is --not-- equivalent to:
# "return CloseHtmlEnvironmentUntil('li')", as that line does not permit
# modules overriding the CloseHtmlEnvironments() function to "have a say."
Expand All @@ -482,7 +482,7 @@ sub CreoleListAndNewLineRule {
# - bullet list (not nestable; always needs space)
elsif ($CreoleDashStyleUnorderedLists and (
($bol and m/\G[ \t]*(-)[ \t]+/cg) or
($is_in_list_item and m/\G[ \t]*\n+[ \t]*(-)[ \t]+/cg))) {
($is_in_list_item and m/\G[ \t]*\n[ \t]*(-)[ \t]+/cg))) {
return ($is_in_list_item ? CloseHtmlEnvironmentUntil('li') : CloseHtmlEnvironments())
.OpenHtmlEnvironment('ul', length($1))
.AddHtmlEnvironment ('li');
Expand Down