For example, on the excerpt history, note that the edits are rendered with Markdown previews.

enter image description here

(e.g. the code-ified and linked array_unique() at the start of my post)

Markdown is not supported in excerpts, so this should not happen.

This is still an issue eight years later.

  • IMO the side-by-side markdown option should not be available and the inline and side-by-side options should both operate on plain text. – Palec Feb 1 '14 at 21:28

I was curious, so I decided to do some digging regarding tag excerpts using SEDE (specifically in excerpts, since Markdown isn't a problem in wiki bodies).

On Stack Overflow, there are (at time of writing) 40,573 tags with non-empty excerpts1.

I wanted to discover how many of these excerpts contained Markdown syntax (which isn't being rendered), so I pulled them into a CSV from the data explorer and constructed some regular expressions to help find them.

Here are my findings:

  • Tag links [tag:_TAGNAME_]
    • ~167 tags contain one or more
  • Newlines2
    • 2,465 tags include at least 1 newline character in their excerpt
      • At least 1,326 of these are mid-body line breaks, rather than ending ones
  • Text formatted as code
    • Between 603 and 676 tags
  • Markdown style links [name](website)
    • 5 tags3
  • Italicized or emboldened text
    • Between 53 and 81 tags

Combining all the expressions I used to pull these numbers4, I got roughly 838 unique tag excerpts containing markdown syntax.

This was actually way less than I expected, to be honest. It accounts for a very small number of tags percentage wise, only 2.07% of all tags with non-empty excerpts. Still, that's not nothing.

I would assume this hasn't been fixed yet due to it not being trivial to swap out the editor for tag wiki excerpts. In my understanding, that would help solve most of the problem, since not seeing rendered markdown in the editor would definitely discourage its use.

Even 8 years on, this should definitely still get addressed.

1 - SEDE query
2 - In practice, line breaks are often not very problematic, but they are not rendered in excerpts.
3 - If someone is inclined to fix them, they're corvid, gqlgen, quire-api, usart, and yang.
4 - Here's a link to the monstrosity of a RegExp that I used.

| improve this answer | |

You must log in to answer this question.

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