Page 1 of 1

💄📝 Les·M·L

Posted: Sunday, 27 April 2025 @ 21:59 EDT
by Lady
This is a thread for my silly little markup language that I use to write boring texts as an alternative to Markdown!

💄📝 Les·M·L 0.5.0

Posted: Sunday, 27 April 2025 @ 22:17 EDT
by Lady
I did a bunch of work this weekend and made a new release. Some hilights :⁠—
  • You can now use and to mark up inline comments. can be used as a shorthand for an empty comment, which can be used to break up spans of text.
  • There is now a syntax for applying attributes to inline elements or text spans: {@attribute="value"}. The old language‐tag‐specific syntax for offset text, ⟨blah⟩@en$, is removed in favour of just doing ⟨blah⟩{@lang="en"},
  • You can, however, now apply language tags to block elements using the @en$ syntax after the element id (or pilcrow if no id is present).
  • Quotations are now marked up by leading each line with » and can be nested, as opposed to being determined by leading white·space and not being nestable.
  • When you start each line with ], it creates a footer, with the exception that a footer which ends a blockquote becomes a figcaption for the containing figure. This replaces the old captioning mechanism.
  • You can now use continuation paragraphs with headings to create hgroups.
An old document might have looked like :⁠—

Code: Select all

#!lesml@en$

⁌ My Document

With a subheading that used to just be treated as an ordinary paragraph.

This is some text containing ⟨español⟩@es$.

Pero éste es más dificil a indicar.

    Here is a blockquote.
    
    “A nested quote couldn’t be marked up before.”
    
    — A caption for the quote.
Now, it would be written like:⁠—

Code: Select all

#!lesml@en$

⁌ My Document

⋯ With a subheading that used to just be treated as an ordinary paragraph.

This is some text containing ⟨español⟩{@lang="es"}.

¶@es$ Pero éste es más dificil a indicar.

» Here is a blockquote.
»
» » A nested quote couldn’t be marked up before.
»
» ] A caption for the quote.
I may re‐add the shorter @en$ syntax for inlines as a shorthand for writing {@lang="en"}, but I haven’t decided yet. It’s maybe a little harder to parse in an inline context.