Comment

Comment by pratikdeoghare

> It is a competitor to JSON. Not sure what brashtag does that JSON does not. I'm not at all convinced that brashtag is simpler than JSON.

As you have noticed it is poor substitute for json. It would be cumbersome to write config file in brashtag.

> This isn't a competitor to markdown.

You can write blog post in markdown. You can write it just as elegantly in brashtag. Only brashtag does not convert the doc to html for you. It just gives you tree. You write a program that processes the tree and produces html.

Example,

Markdown: # Lorem ipsum dolor sit amet

Consectetur _adipiscing_ elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

---

Brashtag:

#h1{Lorem ipsum dolor sit amet}

Consectetur #u{adipiscing} elit, sed do eiusmod tempor incididunt #b{ut labore et dolore} magna aliqua. Ut enim ad minim veniam.

OR you could write

#really big title{Lorem ipsum dolor sit amet}

Consectetur #super duper underline{adipiscing} elit, sed do eiusmod tempor incididunt #emphsize{ut labore et dolore} magna aliqua. Ut enim ad minim veniam.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton