diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-08-22 23:56:23 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-08-22 23:56:23 +0100 |
commit | 91f5be6f02bb6c3cd0ba26ff62acb603a33e741f (patch) | |
tree | 802e1a2894500aa0b7b9bf79cd94fc568d9900df /lib/sisu/v0/dal_syntax.rb | |
parent | small fixes to manifest and html_scroll, and adjustment to html navigation ba... (diff) |
version bump to 0.57, minor addition to markup (a header to heading shortcut) and sisurc.yml update for additional search form option (hyperestraier)
* markup addition, headings, shortcut for top level title (and author)
:A~ @title @author (also available for level 2 (or 3) author) [version bump]
* param markup identifier (and identifier) updated to identify markup
addition in 0.57, :A~ @title
* html search form in navigation band/banner and promo, adjustments,
hyperestraier option offered in promo, requires change in sisurc.yml
* sisurc.yml requires changes to make use search form options, [version
bump] sample updated and commented out
Diffstat (limited to 'lib/sisu/v0/dal_syntax.rb')
-rw-r--r-- | lib/sisu/v0/dal_syntax.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sisu/v0/dal_syntax.rb b/lib/sisu/v0/dal_syntax.rb index dfa7478d..703d9f1b 100644 --- a/lib/sisu/v0/dal_syntax.rb +++ b/lib/sisu/v0/dal_syntax.rb @@ -185,7 +185,7 @@ module Syntax # _2 <:i2> #indent paragraph 2 steps # _3 <:i3> #indent paragraph 3 steps # _4 <:i4> #indent paragraph 4 steps - # _* #bullet (list) + # _* #bullet (list) ● # _1* #bullet (list) indented # _1* #bullet (list) indented # # #numbered (list) level 1 @@ -209,6 +209,9 @@ module Syntax line=line_array.join(' ') line=line.strip end + line.gsub!(/^(1~\??) @title\s+(?:(by\s+)?(?:@creator|@author))\s*$/,"\\1 #{@md.title} - #{@md.subtitle},<br />\\2#{@md.dc_creator}") + line.gsub!(/^(1~\??) @title\s*$/,"\\1 #{@md.title} - #{@md.subtitle}") # + line.gsub!(/^([23]~\??) (?:(by\s+)?(?:@creator|@author))\s*$/,"\\1 \\2#{@md.dc_creator}") # line.gsub!(/<(https?:\/\/\S+?)>/,'< \1 >') #catch problem markup line.gsub!(/<:=(\S+?)>/,'{ c_\1.png 14x14 }http://www.jus.uio.no/sisu') #adjustment 2005w30 line.gsub!(/<!(\S+)!>/,'<:\1>') #escaped special character |