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!

  • sunmarkOP
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    8 days 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.