Open uranusjr opened 9 years ago
Style bundle format:
<style name>.macdownhtmlresource
info.json
<free form>
info.json
:
{
"version": 1, // Incremental if format updates. Positive integer.
"name": "Foobar", // This is the name shown in the preferences.
"stylesheets": [
{
"type": "text/css", // Optional; this is the default.
"path": "style.css" // Relative to info.json
}
],
"scripts": [] // Similar to stylesheets. Defaults to "text/javascript".
}
The current strategy: Do not update formats in the near-future (maybe wait for one minor release, until 0.6), but automatically delete things from Application Support
if they are identical to the bundled version. Custom things would stay intact; if names clash, suffix the user’s version with a number (or something).
And in 0.6 we should…
As a side note, I should ask if we can merge macdown-flatland-theme sometime after this is done.
Maybe it would be better to just let the bundled version take precedence. We can put up a backward-incompatibility notice, specifying that the assets in user-space will be shadowed by the bundled one since
Editor theme bundle format:
<style name>.macdowneditortheme
info.json
<free form>
info.json
:
{
"version": 1,
"name": "Whatever",
"theme": "relative/to/info.json"
}
The current theme and style format is not very extendable. May need a better (bundled) format. This would be a good time to correct some it-was-a-good-idea-at-the-time mistakes.
Todo:
Application Support
.