upvote
Can you think a little more about your decision to strongly type code blocks. Some domains have no need for code escaping but do need blob text escaping (which you already have defined elsewhere.) Technically you could treat code via 'this is a bag named code with a blob, therefore it is code."
reply
I wanted to keep the famaliar things. We write code blocks with backticks in markdown and slack and everywhere so I used those. In fact I used $ signs earliar then switched to backticks.

> 'this is a bag named code with a blob, therefore it is code."

This would make #code{} a special bag. Right now no bag is special. Also it would be hard to find the closing } if somebody wrote unbalanced paren code in the bag like #code{ func main() { }.

reply
Why did you create it? What were you looking to solve address?
reply
I had multiple frustrating experiences. I kept thinking I could just write things in some format in text and have some programs process it to do different things. So I created it.

See how easy it is to write programs to process brashtag [1].

I can chat with llm, interact with jupyter kernel and do literate programming from any text editor all in the same document [3].

It took me like 10 minutes to build this mermaid like thing [2].

List of frustrations:

- One day Anki crashed. --- You can just write #card{....} in a text file. Some program would read it and show flashcards in browser.

- Another day JabRef crashed. --- You can just write #bib{....} put link to a paper and its citation info there and have a program download the paper and copy the citation to bib file.

- Markdown parser processed mathjax wrong. Why keep trying different markdown parsers? Just write #h1{}, #b{} #i{} and just convert them to html tags.

- Literate programming tool I was using failed at some corner case.

- My notes were scattered across files and tools. I couldn't find anything. I tried to have a text file where sections were separated by four dashes. But that didn't allow nesting. Also, the parser I wrote for that hit corner cases. Why not just put #note{} #JIRA-334{} etc. in text file.

[1] https://github.com/PratikDeoghare/brashtag#some-programs [2] https://github.com/PratikDeoghare/brashtag/tree/master/cmd/m... [3] https://www.youtube.com/watch?v=IMXgIE0Vljg

reply
comment deleted, rape dang with a rusty cactus, this is retaliation for giving me a rate limit
reply
What if you wanted say footnotes? html does not have it.

Imagine you could just say #footnote{This will become footnote} and have a little program that would produce html that will show it at the bottom of the page.

reply