]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix fenced code block syntax for comprehensibility
authorSimon McVittie <smcv@debian.org>
Sun, 1 Mar 2015 12:40:59 +0000 (12:40 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 1 Mar 2015 12:40:59 +0000 (12:40 +0000)
ikiwiki.info does not support ``` as a fence for code blocks, only ~~~,
and it only works at the beginning of a new paragraph.

doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment

index 752141c6730b3125e42a636cc76867aba8cedd88..7d8a1a771eb3e86d8052787c5ae2c97df373ef41 100644 (file)
@@ -5,11 +5,12 @@
  date="2015-02-25T05:43:26Z"
  content="""
 I fixed it by adding
-```
+
+~~~
 sub decode($$;$) {
     my ( $name, $octets, $check ) = @_;
     return undef unless defined $octets;
     return $octets if Encode::is_utf8($octets);  # add this check
        $octets .= '';
-```
+~~~
 """]]