aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-07-06 14:42:14 -0400
committerRalph Amissah <ralph@amissah.com>2010-07-06 14:42:14 -0400
commit07e97b0498d734882a380a59d64cad5f8f3a35fc (patch)
tree4c7ec0141f06ff4cfbaf25e622221e89f5e03ef8 /lib
parentvim syntax, recognize #{ monospace }# tag (diff)
html, monospace font (codeblock & monospace tag)
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v2/css.rb5
-rw-r--r--lib/sisu/v2/html_tune.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/sisu/v2/css.rb b/lib/sisu/v2/css.rb
index f088c44e..38913431 100644
--- a/lib/sisu/v2/css.rb
+++ b/lib/sisu/v2/css.rb
@@ -605,6 +605,11 @@ WOK
background: #880000;
}
+ tt {
+ font-family: inconsolata, andale mono, courier new, courier, monospace;
+ background-color: #eeeeee;
+ }
+
label.ocn {
width: 2%;
float: right;
diff --git a/lib/sisu/v2/html_tune.rb b/lib/sisu/v2/html_tune.rb
index 11b1dbde..d5f3f35e 100644
--- a/lib/sisu/v2/html_tune.rb
+++ b/lib/sisu/v2/html_tune.rb
@@ -240,6 +240,7 @@ module SiSU_HTML_Tune
dob.obj.gsub!(/#{Mx[:fa_insert_o]}(.+?)#{Mx[:fa_insert_c]}/,'<ins>\1</ins>')
dob.obj.gsub!(/#{Mx[:fa_cite_o]}(.+?)#{Mx[:fa_cite_c]}/,'<cite>\1</cite>')
dob.obj.gsub!(/#{Mx[:fa_strike_o]}(.+?)#{Mx[:fa_strike_c]}/,'<del>\1</del>')
+ dob.obj.gsub!(/#{Mx[:fa_monospace_o]}(.+?)#{Mx[:fa_monospace_c]}/,'<tt>\1</tt>') # tt, kbd
dob.obj.gsub!(/#{Mx[:mk_o]}:name#(\S+?)#{Mx[:mk_c]}/,'<a name="\1"></a>')
dob.obj.gsub!(/^#{Mx[:gl_bullet]}/m,'●&nbsp;&nbsp;')
dob.obj.gsub!(/#{Mx[:nbsp]}/,'&nbsp;')