Codimd: Markdown syntax doesn't generate `title` text

Created on 19 Aug 2018  路  8Comments  路  Source: hackmdio/codimd

This issue is similar to #638 , but with the title attribute of the img element instead of the alt attribute.

The following markup:

![Taiwan No.1](https://i.imgur.com/fefdJO5.png "Taiwan No.1")

renders to

<p class="part" data-startline="142" data-endline="142">
    <img src="https://i.imgur.com/fefdJO5.png" alt="Taiwan No.1" class="">
</p>

The title attribute isn't rendered according to standard Markdown specification

Thanks in advance!

Most helpful comment

I cannot reproduce it now :-/, anyway thanks for the effort.

All 8 comments

Interestingly, the same works fine in markdown-it demo page (i.e. there the title="" attribute is generated).

Hmm, we use js-xss to whitelisting allow HTML tags and attributes, maybe we should take a look on that.

The default seems to allow title tags: (can be tested live here: https://jsxss.com/en/try.html )

I just test on https://hackmd-ce.herokuapp.com/Ik-rec4lS6mkaMO3xTLSIw
But everything looks fine to me on Chrome 68 (macOS Sierra)

(same link as above Firefox 61.0.2)
grafik

I cannot reproduce it now :-/, anyway thanks for the effort.

Feel free to reopen this if you find any special case to reproduce 馃憤

Don't worry :-) If the issue ever comes back, just reopen this, and we'll have another look!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farleylai picture farleylai  路  5Comments

sagesharp picture sagesharp  路  4Comments

almereyda picture almereyda  路  4Comments

LukasKalbertodt picture LukasKalbertodt  路  4Comments

SISheogorath picture SISheogorath  路  4Comments