8

Here's a comment.
And it's code :

Wouldn't be it better if the procedure were used on[`CloseAsOffTopicReasonTypes.MarkdownMini`](https://meta.stackexchange.com/a/2678/242800 "from the links : the list of existing close reasons *(in markdown syntax)*")at the beginning?

I used Markdow syntax in the link tooltipCloseAsOffTopicReasonTypes.MarkdownMini.

When you put your mouse over the link you see*appearing as*(in markdown syntax)*, but when used in a comment the markdown syntax is convert to HTML and HTML tags are not allowed, so it print<i>(in markdown syntax)</i>when putting the mouse over it.

We should either allow the allowed set of html tags, or use the post behaviour which don't convert the markdown syntax.

10
  • Comment markdown syntax is not the full syntax, it is "markdown mini", a subset.
    – Oded StaffMod
    Commented Aug 5, 2014 at 10:40
  • 1
    @Oded : It don't explain why it is converted to HTML tags to be not interpreted later. Commented Aug 5, 2014 at 10:47
  • That's how the title attribute works in the browser. It doesn't support arbitrary HTML. Arguably, we shouldn't allow markdown at all in the bit that goes into the title.
    – Oded StaffMod
    Commented Aug 5, 2014 at 10:56
  • @Oded : Yes but why don't doing the post behaviour? If you put your mouse over CloseAsOffTopicReasonTypes.MarkdownMiniin my question, Markdown isn't converted to html tags. Commented Aug 5, 2014 at 11:16
  • @Martijn - if I understand the OP correctly, they mean that the title attribute shouldn't be converted to HTML at all, but kept as markdown (as it does for the link in the post itself - hover over the link to see) - it has the "help text" that comes up as a tooltip there, but in comments it does get converted to HTML. A discrepancy.
    – Oded StaffMod
    Commented Aug 5, 2014 at 12:20
  • 1
    @Oded: ad, I missed that comments do interpret markdown in the link title. That's really a bug then. Commented Aug 5, 2014 at 12:23
  • @Oded : Write this code in a comment and a question/answer :[CloseAsOffTopicReasonTypes.MarkdownMini](http://stackoverflow.com/editing-help#advanced-links "list *(in markdown syntax)*"). Then put you mouse over the link to get the link title. You'll see that markdown is interpreted inside links titles. There is 2 way to fix it : 1- Allow the allowed set of HTML tags. 2- Use the post behaviour. Commented Aug 5, 2014 at 13:27
  • So, what is this? A feature request or a bug?
    – ChrisF Mod
    Commented Aug 5, 2014 at 14:58
  • @ChrisF : It is a bug report: look at the question edit history. Implementing the feature request would be way to fix it. Commented Aug 5, 2014 at 15:07
  • Our main markdown guru is on extended vacation right now and I'm not going to touch this for any amount of bounty (also, bounty refunded - try again in a week). Commented Aug 14, 2014 at 4:25

1 Answer 1

0

Thanks to this change, this now works as you expected.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .