arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

xmp tag is depreciated #3

Closed tjstebbing closed 12 years ago

tjstebbing commented 12 years ago

Browsers may drop support for the behaviour provided by this tag.

godDLL commented 12 years ago

Not likely to happen. It is used in production all over the Interwebs. I wouldn't touch it.

arturadib commented 12 years ago

Yeah, plus I'm trying to get folks to reconsider this :)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=12235#c15

(Mainly XML has CDATA, why can't HTML have something like it?)

LostCrew commented 11 years ago

hi arturadib,

i guess it should be good to have the markdown content inside a general-purpose tag like <pre> or <div>, and parse the content with strapdown only if the tag contains a specific attribute, for example a html5 friendly data-markdown. the result would be:

<div data-markdown>
...
</div>

simple, clean and flexible enough. how do you think about that?

thanks very much.

arturadib commented 11 years ago

We'd have to ask users to explicitly escape special HTML chars (like < and >). That'd be a pain, and that's the sole reason we're using <xmp>.

billymoon commented 11 years ago

Why not use either or... just let the developer decide which tehy want, and the script tries to load either way.