💄📝 Les·M·L
💄📝 Les·M·L
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
I did a bunch of work this weekend and made a new release. Some hilights :—
Now, it would be written like:—
I may re‐add the shorter
- 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.
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.
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.
@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.