Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Commit 826a67b

Browse files
authored
Merge pull request #1677 from BoostIO/allow-more
Allow b tag and style attribute
2 parents b8658ab + f3d59a9 commit 826a67b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

browser/lib/markdown.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ class Markdown {
5555

5656
// Sanitize use rinput before other plugins
5757
this.md.use(sanitize, {
58-
allowedTags: ['iframe', 'input',
58+
allowedTags: ['iframe', 'input', 'b',
5959
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'h7', 'h8', 'br', 'b', 'i', 'strong', 'em', 'a', 'pre', 'code', 'img', 'tt',
6060
'div', 'ins', 'del', 'sup', 'sub', 'p', 'ol', 'ul', 'table', 'thead', 'tbody', 'tfoot', 'blockquote',
6161
'dl', 'dt', 'dd', 'kbd', 'q', 'samp', 'var', 'hr', 'ruby', 'rt', 'rp', 'li', 'tr', 'td', 'th', 's', 'strike', 'summary', 'details'
6262
],
6363
allowedAttributes: {
6464
'*': [
65+
'style',
6566
'abbr', 'accept', 'accept-charset',
6667
'accesskey', 'action', 'align', 'alt', 'axis',
6768
'border', 'cellpadding', 'cellspacing', 'char',

0 commit comments

Comments
 (0)