I'd do the jquery function .text() on a page, spaces and new lines with a max sequential occurence of 1 and would send that through in markdown (to get some layout).
The browser contains same basic stylesheets and the user can change this (h1,h2,p,...)
Keep the link functionality with # (for single page apps) somehow, for links {{the text}{the link}} could be used.
The browser contains same basic stylesheets and the user can change this (h1,h2,p,...)
Keep the link functionality with # (for single page apps) somehow, for links {{the text}{the link}} could be used.
Strip everything else.