mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
dirty Fix for github code block
This commit is contained in:
parent
2e102c72b2
commit
d5d379a145
|
@ -10,9 +10,9 @@
|
|||
return [
|
||||
{ type: 'output', filter: function(source){
|
||||
|
||||
return source.replace(/(<pre>)?<code>/gi, function(match, pre) {
|
||||
return source.replace(/(<pre(.)*>)?<code/gi, function(match, pre) {
|
||||
if (pre) {
|
||||
return '<pre class="prettyprint linenums" tabIndex="0"><code data-inner="1">';
|
||||
return '<pre class="prettyprint linenums" tabIndex="0"><code data-inner="1"';
|
||||
} else {
|
||||
return '<code class="prettyprint">';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user