Skip to content

Instantly share code, notes, and snippets.

@kayakaya
Created December 12, 2009 08:01
Show Gist options
  • Save kayakaya/254797 to your computer and use it in GitHub Desktop.
Save kayakaya/254797 to your computer and use it in GitHub Desktop.
Index: core/misc/lib/hikidoc.rb
===================================================================
--- core/misc/lib/hikidoc.rb (revision 3557)
+++ core/misc/lib/hikidoc.rb (working copy)
@@ -438,7 +438,7 @@
def compile_bracket_link(link)
if m = /\A(?>[^|\\]+|\\.)*\|/.match(link)
- title = m[0].chop
+ title = m[0].chop.gsub( %r[\\\|], '|' )
uri = m.post_match
fixed_uri = fix_uri(uri)
if can_image_link?(uri)
Index: plugin/category.rb
===================================================================
--- plugin/category.rb (revision 3557)
+++ plugin/category.rb (working copy)
@@ -121,7 +121,7 @@
end
r << <<HTML
<div class="conf day">
- <h2><span class="title">#{img}#{info.make_anchor}</span></h2>
+ <h2><span class="title">#{img}#{info.make_anchor.force_encoding('UTF-8')}</span></h2>
<div class="body">
<ul class="category">
HTML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment