scripting / reallysimple

A Node package that reads RSS, Atom and RDF feeds and calls back with a simple, consistent JavaScript object.
MIT License
83 stars 0 forks source link

source namespace: support different source (raw) formats #8

Open Oblomov opened 1 year ago

Oblomov commented 1 year ago

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.

scripting commented 1 year ago

@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.

Oblomov commented 1 year ago

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).