File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 881881 . replace ( / & / g, '&' )
882882 . replace ( / < / g, '<' )
883883 . replace ( / > / g, '>' )
884- . replace ( / ^ # { 1 , 6 } ( . * ) $ / gim , '<h3>$1 </h3>' )
885- . replace ( / \* \* ( .* ?) \* \* / g, '<strong>$1</strong>' )
886- . replace ( / _ _ ( .* ?) _ _ / g, '<strong>$1</strong>' )
887- . replace ( / \* ( .* ?) \* / g, '<em>$1</em>' )
888- . replace ( / _ ( .* ?) _ / g, '<em>$1</em>' )
884+ . replace ( / ( ^ | \n ) # { 1 , 6 } ( [ ^ \n ] * ) (? = ( [ ^ ` ] * ` [ ^ ` ] * ` ) * [ ^ ` ] * $ ) / g , '$1 <h3>$2 </h3>' )
885+ . replace ( / \* \* ( .* ?) \* \* (? = ( [ ^ ` ] * ` [ ^ ` ] * ` ) * [ ^ ` ] * $ ) / g, '<strong>$1</strong>' )
886+ . replace ( / _ _ ( .* ?) _ _ (? = ( [ ^ ` ] * ` [ ^ ` ] * ` ) * [ ^ ` ] * $ ) / g, '<strong>$1</strong>' )
887+ . replace ( / \* ( .* ?) \* (? = ( [ ^ ` ] * ` [ ^ ` ] * ` ) * [ ^ ` ] * $ ) / g, '<em>$1</em>' )
888+ . replace ( / _ ( .* ?) _ (? = ( [ ^ ` ] * ` [ ^ ` ] * ` ) * [ ^ ` ] * $ ) / g, '<em>$1</em>' )
889889 . replace ( / ` ` ` .* ?\n ( [ \s \S ] * ?) ` ` ` / g, '<pre><code>$1</code></pre>' )
890890 . replace ( / ` ( .* ?) ` / g, '<code>$1</code>' )
891891 . replace ( / \n / gim, '<br />' ) ;
You can’t perform that action at this time.
0 commit comments