diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-07-06 14:42:14 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-07-06 14:42:14 -0400 |
commit | 07e97b0498d734882a380a59d64cad5f8f3a35fc (patch) | |
tree | 4c7ec0141f06ff4cfbaf25e622221e89f5e03ef8 /lib | |
parent | vim syntax, recognize #{ monospace }# tag (diff) |
html, monospace font (codeblock & monospace tag)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/css.rb | 5 | ||||
-rw-r--r-- | lib/sisu/v2/html_tune.rb | 1 |
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,'● ') dob.obj.gsub!(/#{Mx[:nbsp]}/,' ') |