reallysimple icon indicating copy to clipboard operation
reallysimple copied to clipboard

source namespace: support different source (raw) formats

Open Oblomov opened this issue 2 years ago • 2 comments

Hello,

I was reading the http://source.scripting.com/ and my understanding is that presently this namespace cannot be used for non-Markdown sources (e.g. ReStructured Text, AsciiDoc or other). A possible alternative would be to have instead of source:markdown a source:raw (or some other name) element with a required attribute (format or possibly type) to denote the format. I'm thinking the attribute values could be either a simple string (markdown, asciidocto, rst) or possibly even the registered MIME type (if any) of the raw content.

Oblomov avatar Nov 16 '22 18:11 Oblomov

@Oblomov -- the <source:markdown> element is designed to move markdown text around. but there's absolutely nothing preventing anyone from creating another namespace for other data types. At this stage I can't change it without breaking my own and possibly other people's applications.

scripting avatar Nov 16 '22 21:11 scripting

The source:markdown element could still be kept for backward compatibility (possibly specifying the equivalence between it and the corresponding source:raw format="text/markdown" or whatever).

Oblomov avatar Nov 17 '22 06:11 Oblomov