7

On the question How to convert a string of space- and comma- separated numbers into a list of int?

Note the comment I have added at the end of the page source. If I try to remove the comment and its enclosing <sub></sub> tags, the last paragraph of the note reverts (in both the preview and the submitted version) to normal size, as if its enclosing tags were not there.

There is no analogous issue on any other question; for example see How to split a string of space separated numbers into integers? whence I copied the note. (I reopened the first question, previously marked duplicate of the second, because of the additional consideration: numbers separated by , are better off split by , rather than , , because it is more fault-tolerant as int will tolerate the leading space.)

Example

Correct rendering of CommonMark Markdown

Live example on CommonMark site, showing both paragraphs in subscript

Incorrect rendering on Stack Exchange

Markdown text

<sub>Paragraph in subscript without closing `</sub>`

<sub>Paragraph that's supposed to be in subscript, but isn't.</sub>

Incorrect rendered text (in both the editing preview and once saved)

Paragraph in subscript without closing </sub>

Paragraph that's supposed to be in subscript, but isn't.

3
  • 2
    The first paragraph in your note is missing a </sub>. While that shouldn't matter, as can be tested on the CommonMark test site, it does matter on SE, at least in the preview. It might be something to do with SE's HTML tag stripping (which is supposed to just strip HTML tags that aren't in the list of allowed tags).
    – Makyen Mod
    May 19 at 0:28
  • @Makyen Ah! Good eye. I updated to fix that, and it works fine now. May 19 at 2:20
  • 5
    This is actually a bug, which should be reported. At a minimum, the behavior should be clearly documented in answer to: "What HTML tags are allowed on Stack Exchange sites?". Either way, we should report it to SE to have them tell us if it's working the way they intend.
    – Makyen Mod
    May 20 at 15:06

0

You must log in to answer this question.

Browse other questions tagged .