Skip to content

Commit f0add9f

Browse files
André DietrichAndré Dietrich
authored andcommitted
add information on styling lists and updated parsing (ai friendly)
1 parent 2755aa8 commit f0add9f

1 file changed

Lines changed: 149 additions & 28 deletions

File tree

README.md

Lines changed: 149 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
33
author: André Dietrich
44
email: LiaScript@web.de
5-
date: 29/04/2026
6-
version: 34.0.2
5+
date: 09/07/2026
6+
version: 34.0.4
77
language: en
88
narrator: UK English Female
99
@@ -1216,47 +1216,62 @@ etc.
12161216
********************************************************************************
12171217

12181218
{{2}}
1219-
> __Note:__
1220-
> At the moment it is required to separate blocks by at least one empty line.
1221-
> The following example will be interpreted as a single paragraph:
1219+
> [!NOTE]
1220+
> Since LiaScript version 1.0, the following syntax is also supported and is
1221+
> easier for AI tools to generate correctly.
12221222
>
1223-
> ``` markdown
1224-
> * this is one single
1225-
> - paragraph with a dash.
1226-
> ```
1223+
> The interpreter can distinguish between a continuation of the current list
1224+
> item and a nested sublist. In earlier versions, the structure had to be
1225+
> indicated more explicitly.
12271226
>
1228-
> Whereby the following will result in a bullet point with another one nested
1227+
> Although both forms are valid, adding a blank line before a nested list makes
1228+
> the document easier to read and clearly communicates that a new sublist begins.
12291229
>
1230-
> ``` markdown
1231-
> * separate paragraph
1230+
> ```markdown
1231+
> * This belongs to a single list item
1232+
> - and is interpreted as a continuation introduced by a dash.
1233+
>
1234+
> ---
12321235
>
1233-
> - and this is a separate sub listing
1236+
> * This is a separate list item.
1237+
>
1238+
> - This is a nested sublist.
12341239
> ```
1240+
>
1241+
> * This belongs to a single list item
1242+
>
1243+
> * and is interpreted as a continuation introduced by a dash.
1244+
>
1245+
> ---
1246+
>
1247+
> * This is a separate list item.
1248+
>
1249+
> * This is a nested sublist.
12351250
12361251
12371252
#### Ordered Lists 💫
12381253
1239-
--{{0}}--
1240-
1241-
Ordered lists start with a number and a dot. As you can see from the example,
1242-
the numbering is important. In contrast to the GitHub flavored Markdown or the
1243-
original Markdown, where the list below would result in **two** separate lists,
1244-
and the numbering for every list would start at 1, ignoring your numbering
1245-
order. With the LiaScript interpretation you can separate your lists, add more
1246-
explanations in between, or use animations to make certain parts appear or
1247-
disappear.
1248-
1254+
--{{0}}--
1255+
Ordered lists are created by placing a number followed by a period in front of
1256+
each item. In LiaScript, the numbers you specify are preserved and therefore
1257+
become part of the list's structure.
1258+
This differs from standard Markdown and GitHub Flavored Markdown, which usually
1259+
ignore the numbers written in the source and automatically number each list
1260+
starting from `1`.
1261+
Because LiaScript preserves the explicit numbering, you can interrupt a list
1262+
with additional content, continue it later, or use animations to show and hide
1263+
individual parts without losing the intended numbering.
12491264
1250-
**Markdown-Syntax:**
1265+
**Markdown syntax:**
12511266
12521267
<!-- class="translate"-->
1253-
``` markdown
1268+
```markdown
12541269
0. alpha
12551270
1. **beta**
12561271
12571272
Something else ...
12581273
1259-
3. * gamma
1274+
3. *gamma*
12601275
* delta
12611276
* and epsilon
12621277
2. probably zeta
@@ -1269,10 +1284,116 @@ Something else ...
12691284
12701285
Something else ...
12711286
1272-
3. * gamma
1287+
3. *gamma*
1288+
12731289
* delta
12741290
* and epsilon
1275-
2. probably zeta
1291+
4. probably zeta
1292+
1293+
{{1}}
1294+
<section>
1295+
1296+
##### Changing the numbering format with `type`
1297+
1298+
--{{1}}--
1299+
By default, ordered lists use decimal numbers such as `1`, `2`, and `3`.
1300+
The HTML-compatible `type` attribute allows you to select a different numbering
1301+
format.
1302+
1303+
The following values are supported:
1304+
1305+
| Value | Numbering format | Example |
1306+
|:-----:|--------------------------|------------|
1307+
| `1` | Decimal numbers | 1, 2, 3 |
1308+
| `a` | Lowercase Latin letters | a, b, c |
1309+
| `A` | Uppercase Latin letters | A, B, C |
1310+
| `i` | Lowercase Roman numerals | i, ii, iii |
1311+
| `I` | Uppercase Roman numerals | I, II, III |
1312+
1313+
Add the attribute as an HTML comment directly before the list:
1314+
1315+
``` markdown
1316+
<!-- type="a" -->
1317+
1. one
1318+
2. two
1319+
12. twelve
1320+
99. risk
1321+
```
1322+
1323+
###### Lowercase Latin letters `type="a"`
1324+
1325+
<!-- type="a" -->
1326+
1. one
1327+
2. two
1328+
12. twelve
1329+
99. risk
1330+
1331+
###### Uppercase Latin letters `type="A"`
1332+
1333+
<!-- type="A" -->
1334+
1. one
1335+
2. two
1336+
12. twelve
1337+
99. risk
1338+
1339+
###### Lowercase Roman numerals `type="i"`
1340+
1341+
<!-- type="i" -->
1342+
1. one
1343+
2. two
1344+
12. twelve
1345+
99. risk
1346+
1347+
###### Uppercase Roman numerals `type="I"`
1348+
1349+
<!-- type="I" -->
1350+
1. one
1351+
2. two
1352+
12. twelve
1353+
99. risk
1354+
1355+
</section>
1356+
1357+
1358+
{{2}}
1359+
<section>
1360+
1361+
##### Using CSS with `list-style-type`
1362+
1363+
1364+
--{{2}}--
1365+
For additional numbering formats, you can apply the CSS property
1366+
`list-style-type` through LiaScript's inline block styling.
1367+
This provides access to formats that are not available through the `type`
1368+
attribute, such as Greek letters or numbers with leading zeros.
1369+
1370+
```markdown
1371+
<!-- style="list-style-type: lower-greek" -->
1372+
1. alpha
1373+
2. beta
1374+
3. gamma
1375+
```
1376+
1377+
**Result:**
1378+
1379+
<!-- style="list-style-type: lower-greek" -->
1380+
1. alpha
1381+
2. beta
1382+
3. gamma
1383+
1384+
Other useful values include:
1385+
1386+
```text
1387+
decimal
1388+
decimal-leading-zero
1389+
lower-alpha
1390+
upper-alpha
1391+
lower-roman
1392+
upper-roman
1393+
lower-greek
1394+
```
1395+
1396+
</section>
12761397
12771398
12781399
### Blockquotes

0 commit comments

Comments
 (0)