diff --git a/install/package.json b/install/package.json index fac61cf2da..ca0c847cf2 100644 --- a/install/package.json +++ b/install/package.json @@ -95,7 +95,7 @@ "nodebb-plugin-dbsearch": "6.0.1", "nodebb-plugin-emoji": "5.0.10", "nodebb-plugin-emoji-android": "4.0.0", - "nodebb-plugin-markdown": "12.0.3", + "nodebb-plugin-markdown": "12.0.4", "nodebb-plugin-mentions": "4.1.1", "nodebb-plugin-ntfy": "1.0.15", "nodebb-plugin-spam-be-gone": "2.0.7", diff --git a/public/src/client/topic.js b/public/src/client/topic.js index 7143759506..a0b9aba183 100644 --- a/public/src/client/topic.js +++ b/public/src/client/topic.js @@ -234,7 +234,7 @@ define('forum/topic', [ let codeBlocks = $('[component="topic"] [component="post/content"] code:not([data-button-added])'); codeBlocks = codeBlocks.filter((i, el) => $(el).text().includes('\n')); const container = $('
'); - const buttonDiv = $(''); + const buttonDiv = $(''); codeBlocks.parent().wrap(container).parent().append(buttonDiv); codeBlocks.parent().parent().find('[component="copy/code/btn"]').translateAttr('title', '[[topic:copy-code]]'); codeBlocks.attr('data-button-added', 1);