this post was submitted on 23 Mar 2025
0 points (50.0% liked)

Programming Languages

1283 readers
1 users here now

Hello!

This is the current Lemmy equivalent of https://www.reddit.com/r/ProgrammingLanguages/.

The content and rules are the same here as they are over there. Taken directly from the /r/ProgrammingLanguages overview:

This community is dedicated to the theory, design and implementation of programming languages.

Be nice to each other. Flame wars and rants are not welcomed. Please also put some effort into your post.

This isn't the right place to ask questions such as "What language should I use for X", "what language should I learn", and "what's your favorite language". Such questions should be posted in /c/learn_programming or /c/programming.

This is the right place for posts like the following:

See /r/ProgrammingLanguages for specific examples

Related online communities

founded 2 years ago
MODERATORS
 

We’ve just made Marksafe even more intuitive and concise with shorthand syntax and delimiter escaping!

New Shorthand Syntax – Write cleaner markup with:
👉 [uli]item1;;item2;;item3[/uli] instead of [ul][li]item1[/li][li]item2[/li][li]item3[/li][/ul]
👉 [bq]A blockquote example[/bq] instead of [blockquote]A blockquote example[/blockquote]

Delimiter Escaping – Need to use ;;, ,,, or other special characters inside content or attributes? Just escape them with \:
👉 [a]href=https://example.com,,Click here to see \,,escaped commas[/a]

Marksafe keeps all the flexibility of HTML while staying lightweight and readable—perfect for devs who need powerful, secure, and extensible rich text formatting.

🔗 Check it out here: https://github.com/mksunny1/marksafe
💬 Docs & API: https://github.com/mksunny1/marksafe/blob/main/docs/classes/Marksafe.md
💖 Support & Contribute: https://github.com/sponsors/mksunny1

Try it out and let me know what you think!

all 6 comments
sorted by: hot top controversial new old
[–] Kissaki 7 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

In what way is it cleaner than Markdown?

[table]
  [tr][th]Header 1;;Header 2;;Header 3[/th][/tr]

That looks like replicating HTML with additional complexity.

Markdown is good because it's simple and text-based. It has a simple syntax. Looking at Marksafe looks like you have to learn more syntax than Markdown and more than HTML.

I can see that additional syntax can make it more concise than HTML. But intuitively I wouldn't conciseness at the cost of additional complexity cleaner.

[–] sunmark 2 points 2 weeks ago* (last edited 2 weeks ago) (1 children)

It's not supposed to be additional complexity. It is pretty much HTML with simple transformations: [a]href=./link/url,,A link[/a]. Then just those tweaks for more concision:

  • [/tagName][tagName] -> ;;
  • [ul][li]item1;;item2;;item3[/li][/ul] -> [uli]item1;;item2;;item3[/uli]
  • [strong]x[/strong] -> [*]x[/*] (because of Markdown)
  • blockquote -> bq

It's supposed to be a great bridge between Markdown and HTML. I needed this for my own project and md was not flexible enough, never mind all the parsers were giving one safety caveat or the other.

[–] Kissaki 1 points 2 weeks ago (1 children)

What do you mean by it's not supposed to be additional complexity?

I can see where it could be useful. But I also see its cost. Obviously, it doesn't want to add additional complexity. But when you add additional syntax and semantics you can't get around that.

[–] sunmark 0 points 2 weeks ago

Haha. I think I understand you better. I am happy you can see where it could be useful. But you don't want anything more complex than HTML for text editing. In reality one is not really going to need to learn all of HTML to use it. It can go from simple Markdown-like usage (for regular users using a few tags at a small extra cost in terms of verbosity) to more advanced use cases involving more complex elements or styles (for devs). So that is where I am coming from in the design. You are right to say knowing Marksafe entails knowing HTML and a bit more, but I don't think that is exactly a bad thing.