aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-04-29 14:15:49 -0400
committerRalph Amissah <ralph@amissah.com>2010-04-29 14:15:49 -0400
commit72180b72ce9c1b0d25e7c22188c443f1f7836b3f (patch)
tree3eca6eba8fc03c7811c5b499c6fa9dff24ad3702 /lib/sisu/v2/sysenv.rb
parentdal, markup, auto-level 1~ conversion of hash to number (diff)
markup for *{emphasis}* configurable as being either bold or italics
* the default is that emphasis output is in bold so there is no change at present unless sisurc.yml is configured (markup: emphasis: 'italics') [requested]
Diffstat (limited to 'lib/sisu/v2/sysenv.rb')
-rw-r--r--lib/sisu/v2/sysenv.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb
index ed0fe136..c5bc63c2 100644
--- a/lib/sisu/v2/sysenv.rb
+++ b/lib/sisu/v2/sysenv.rb
@@ -875,6 +875,13 @@ module SiSU_Env
? @rc['processing']['concord_max'] \
: (defaults[:concord_max])
end
+ def markup_emphasis
+ ((defined? @rc['markup']['emphasis']) \
+ && @rc['markup']['emphasis'] \
+ && (@rc['markup']['emphasis']=~/italic/)) \
+ ? 'italics' \
+ : 'bold'
+ end
def current_document
@@current_document||=Dir.pwd
@@current_document