mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 19:10:57 -05:00
Fix image alt not render properly
This commit is contained in:
parent
11a5dd0eb4
commit
3703b12584
1 changed files with 2 additions and 1 deletions
|
@ -1007,9 +1007,10 @@ md.use(markdownitContainer, 'info', { render: renderContainer })
|
|||
md.use(markdownitContainer, 'warning', { render: renderContainer })
|
||||
md.use(markdownitContainer, 'danger', { render: renderContainer })
|
||||
|
||||
let defaultImageRender = md.renderer.rules.image
|
||||
md.renderer.rules.image = function (tokens, idx, options, env, self) {
|
||||
tokens[idx].attrJoin('class', 'raw')
|
||||
return self.renderToken(...arguments)
|
||||
return defaultImageRender(...arguments)
|
||||
}
|
||||
md.renderer.rules.list_item_open = function (tokens, idx, options, env, self) {
|
||||
tokens[idx].attrJoin('class', 'raw')
|
||||
|
|
Loading…
Reference in a new issue