3 ms·
Author here. > Maybe I'm missing the benefit here Sundown is useful because it lets you abstract your custom server-side HTML tags. In other words, you can ex
by ne01 9y ago
Author here.
> Maybe I'm missing the benefit here
Sundown is useful because it lets you abstract your custom server-side HTML tags. In other words, you can extend the language very easily.
For example, you can create a tag called "note" and use that instead of repeating HTLM, CSS and even JS:
<s:tag name="note">
<div style="color:red;">
Note: {{@content}}!!
</div>
</s:tag>
And then call your new tag using the HTML syntax or Sundown:
<note>Sundown is awesome ;)</note>
:note Sundown is awesome :)
Result:
<div style="color:red">Note: Sundown is awesome :)!!</div>
Sundown is just an HTML preprocessor (like Markdown) once it is transformed to HTML it's the SunSed language that compiles all the custom HTML tags to executable format.
- ukulele 9y agoI can see the use case you're going for. As others have mentioned though, this value is not coming as an alternative to markdown but rather an enhancement to HTML in a different use case. Feels kind of like Sundown:HTML::SCSS:CSS. If you can communicate this (vs being an improvement on markdown), you'll probably get people to take a closer look.
- ne01 9y agoYou are right. Thank you for the insight! How about this: Sundown and Markdown are both HTML preprocessors with different goals.
- roywiggins 9y agoNot all markdown processors implement inline HTML, which I learned to my detriment recently (the "markdown" package on npm doesn't).
- ne01 9y agoExactly. Most Markdown processors don't implement this feature because it is very unpredictable and has too many contradictory edge cases.
- pyre 9y ago... which makes Markdown even _less_ like your software. Also less relevant to marketing efforts as people up-thread are saying. Some of the use-cases that you're covering with your software were never covered by Markdown, nor were they ever intended to be use-cases for Markdown. So you're not going to find people that are currently using Markdown that will need Sundown for those use-cases.
- ukulele 9y agoHonestly I see no reason to even mention markdown. Sundown really has nothing to do with it. Just state why it's an improvement over HTML in various scenarios.
- SwellJoe 9y agoThis makes it very different from Markdown to the point of it not making sense to compare the two, I think. Markdown is not a programming language or a template language (though people often overlay some sort of template processing after processing the Markdown into HTML in order to apply styles to the resulting HTML, e.g. for many static site generators this is the case...but the Markdown processor has no knowledge of that or concern for it). I feel like this is more much comparable to, as others note, something like Jade/Pug, than Markdown. And, it may be a very good competitor to those sorts of tools, I dunno. Seems like Sundown is a programmers tool; Markdown is an end user tool (often used by programmers in contexts where they don't want to program, like commenting on forums and tickets and such). But, I guess they are all just taking some sort of input and spitting out some HTML. It just seems like Markdown isn't the right thing to compare it to.
- jonathankoren 9y ago> Sundown is useful because it lets you abstract your custom server-side HTML tags. In other words, you can extend the language very easily. So it's XML and XSL.
- Kagerjay 9y agoBut we have HAML and PUG for this already (HTML preprocessors)