Skip to content

Commit

Permalink
Fix code highlighting in FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Mar 29, 2024
1 parent 43fb7cd commit f832004
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions doc/faq.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,6 @@ sub start_question {
$state = 1;
start_section $1;
}
else {
if (/^```(\w+)/) {
$cur_question->{'data'} .= "{% highlight $1 %}\n";
$state = 3;
}
else {
$cur_question->{'data'} .= $_;
}
}
}
elsif ($state == 3) {
if (/^```\s*$/) {
$state = 2;
$cur_question->{'data'} .= "{% endhighlight %}\n";
}
else {
$cur_question->{'data'} .= $_;
}
Expand Down Expand Up @@ -115,4 +100,4 @@ sub start_question {
print $question->{'data'};
print "Back to [content](#table-of-content)\n\n";
}
}
}

0 comments on commit f832004

Please sign in to comment.