0

I'm extremely amazed about how Stack Overflow stores content that I'm asking into their database to display (markdowned) in question detail. The content consists of normal text, image, code ...etc.

1
  • I think, Simply in HTML
    – Sankar
    Commented Oct 17, 2016 at 5:21

1 Answer 1

5

The content is stored both in Markdown (to allow editing) and in HTML (to avoid having to parse it every time, which would lead to reduced performance). There have been cases where old posts, written at the time an old Markdown parser was used, had to be edited in order to generate the correct HTML.

A simple SEDE query on the Posts table shows that the content is stored in HTML, and on the Post History table you can find the Markdown source. SEDE is just an analysis tool for the community, not the real source database for Stack Exchange, but its structure is similar.

1

You must log in to answer this question.

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