diff --git a/_plugins/manual.rb b/_plugins/manual.rb index 2c5c4b8..b3d8dad 100644 --- a/_plugins/manual.rb +++ b/_plugins/manual.rb @@ -165,6 +165,10 @@ module Manual position ? [current, position, level + 1] : [current] end + def sanitize_NMTOKEN(s) + 'ID'+s.gsub(/[^0-9A-z:_.-]/, '_') + end + def render(context) @source = '_manual' #context.registers[:site].source @@ -201,7 +205,7 @@ module Manual erb = ::ERB.new <<-HTML
- <%= entry[:menu_title] %> + <%= entry[:menu_title] %>
<% if entry[:children].any? %> @@ -221,7 +225,7 @@ module Manual erb = ::ERB.new <<-HTML
- <%= entry[:menu_title] %> + <%= entry[:menu_title] %>