diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-08-21 23:18:00 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-08-21 23:18:04 -0400 |
commit | 27cce87ed33bd46ef298c848a45651ce782830a3 (patch) | |
tree | 9123d1c15464f4347f8080cd8e27c71a0dace1b7 /lib/sisu/v5/dal_expand_insertions.rb | |
parent | v5: markup syntax add: switch ocn (object numbering) off & on for content block (diff) |
v5: alternative open and close for blocks using line starting with "```"
* e.g.
open code block: "``` code"
close code block: "```"
start poem: "``` poem"
end poem: "```"
* remove need for an empty line between opening & closing of a text block
Diffstat (limited to 'lib/sisu/v5/dal_expand_insertions.rb')
-rw-r--r-- | lib/sisu/v5/dal_expand_insertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v5/dal_expand_insertions.rb b/lib/sisu/v5/dal_expand_insertions.rb index ca234624..eb4f8363 100644 --- a/lib/sisu/v5/dal_expand_insertions.rb +++ b/lib/sisu/v5/dal_expand_insertions.rb @@ -332,9 +332,9 @@ module SiSU_DAL_Insertions tuned_file,tuned_file_tmp=[],[] codeblock_=false data.each do |para| - codeblock_=if para =~/^code\{/ + codeblock_=if para =~/^(?:code\{|```\s+code)/ true - elsif para =~/^\}code/ + elsif para =~/^(?:\}code|```)/m false else codeblock_ end |