aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/dal_expand_insertions.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-08-25 01:14:22 -0400
committerRalph Amissah <ralph@amissah.com>2013-08-25 01:14:22 -0400
commit3429989568b4c48b1ade8800251ec11471348b5f (patch)
treeca04e070342d8b1dde84a34a8dd6e8d9a7e6dba6 /lib/sisu/v5/dal_expand_insertions.rb
parentv4 v5: css, html, epub, adjust paragraph spacing, aesthetic (diff)
v5: dal, refine grouped text open and close using tics "```"
Diffstat (limited to 'lib/sisu/v5/dal_expand_insertions.rb')
-rw-r--r--lib/sisu/v5/dal_expand_insertions.rb4
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 eb4f8363..e43dd3af 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\{|```\s+code)/
+ codeblock_=if para =~/^(?:code\{|[`]{3}\s+code)/
true
- elsif para =~/^(?:\}code|```)/m
+ elsif para =~/^(?:\}code|[`]{3}(?:\s|$))/m
false
else codeblock_
end