client/misc: fix invalid markup for SJIS
This commit is contained in:
parent
c2606a2555
commit
9e13c05517
|
@ -123,7 +123,7 @@ function formatMarkdown(text) {
|
||||||
text = text.replace(/%%%#/g, '#');
|
text = text.replace(/%%%#/g, '#');
|
||||||
|
|
||||||
text = text.replace(
|
text = text.replace(
|
||||||
/%%%SJIS(\d+)/,
|
/(?:<p>)?%%%SJIS(\d+)(?:<\/p>)?/,
|
||||||
(match, capture) => {
|
(match, capture) => {
|
||||||
return '<div class="sjis">' + sjis[capture] + '</div>';
|
return '<div class="sjis">' + sjis[capture] + '</div>';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue