lib/govspeak.rb in govspeak-8.3.0 vs lib/govspeak.rb in govspeak-8.3.1

- old
+ new

@@ -276,13 +276,11 @@ lines.join end extension("call-to-action", surrounded_by("$CTA")) do |body| <<~BODY - {::options parse_block_html=\"true\" /} - <div class="call-to-action">#{body}</div> - {::options parse_block_html=\"false\" /} + <div class="call-to-action" markdown="1">#{body}</div> BODY end # More specific tags must be defined first. Those defined earlier have a # higher precedence for being matched. For example $CTA must be defined @@ -301,12 +299,12 @@ extension("legislative list", /#{NEW_PARAGRAPH_LOOKBEHIND}\$LegislativeList\s*$(.*?)\$EndLegislativeList/m) do |body| # The surrounding div is neccessary to control flow in `parse_block_html` and # maintain the same functionality as a previous version of this extension. <<~BODY - {::options parse_block_html=\"true\" ordered_lists_disabled=\"true\" /} - <div class="legislative-list-wrapper">#{body}</div> - {::options parse_block_html=\"false\" ordered_lists_disabled=\"false\" /} + {::options ordered_lists_disabled=\"true\" /} + <div class="legislative-list-wrapper" markdown="1">#{body}</div> + {::options ordered_lists_disabled=\"false\" /} BODY end extension("numbered list", /^[ \t]*((s\d+\.\s.*(?:\n|$))+)/) do |body| body.gsub!(/s(\d+)\.\s(.*)(?:\n|$)/) do