1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
Index: plugins/Markdown/Markdown.pl
===================================================================
@@ -1110,11 +1110,16 @@
#
# Unhashify HTML blocks
#
- foreach (@grafs) {
- if (defined( $g_html_blocks{$_} )) {
- $_ = $g_html_blocks{$_};
+ my $hashes_found;
+ do {
+ $hashes_found = 0;
+ foreach (@grafs) {
+ if (exists $g_html_blocks{$graf} ) {
+ $_ = $g_html_blocks{$graf};
+ $hashes_found = 1;
+ }
}
- }
+ } while ($hashes_found);
return join "\n\n", @grafs;
}
|