View (Markdown) Source button on DEV

Gabor Szabo - Dec 30 '22 - - Dev Community

One of the best ways to learn anything is to be able to look at the source code. Browsers provide an easy way to see the HTML source code of a web site.

I think it would be nice to have a button (maybe behind the ... on each article and each comment) that you could click and see the Markdown source of it.

For example I'd like to be able to see how the table of contents was added to this article.

I think this would be a nice way to help people improve their knowledge of Markdown

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .