Merge pull request #62 from mmarkdown/attributes

Set attributes for block element captionFigure
This commit is contained in:
Miek Gieben 2018-08-15 17:21:24 +01:00 committed by GitHub
commit d43e795e3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -780,7 +780,8 @@ func (r *Renderer) caption(w io.Writer, caption *ast.Caption, entering bool) {
func (r *Renderer) captionFigure(w io.Writer, figure *ast.CaptionFigure, entering bool) {
if entering {
r.outs(w, "<figure>")
attrs := BlockAttrs(figure)
r.outTag(w, "<figure", attrs)
return
}