mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/misc: fix invalid markup for SJIS
This commit is contained in:
@ -123,7 +123,7 @@ function formatMarkdown(text) {
|
||||
text = text.replace(/%%%#/g, '#');
|
||||
|
||||
text = text.replace(
|
||||
/%%%SJIS(\d+)/,
|
||||
/(?:<p>)?%%%SJIS(\d+)(?:<\/p>)?/,
|
||||
(match, capture) => {
|
||||
return '<div class="sjis">' + sjis[capture] + '</div>';
|
||||
});
|
||||
|
Reference in New Issue
Block a user