Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-11-19 04:56:18

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Textile. Add type to ordered lists

It would be nice, especially to the non Latin alphabet users of our community if textile had a type attribute for ordered lists.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2024-11-19 05:29:42

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,207
Website

Re: Textile. Add type to ordered lists

The list-style-type css property could do as well, see the MDN documentation page for a full list and examples.

ol {
  list-style-type: cjk-decimal;
}

Mind you, sometimes the list-style-type should (must) be specified in the HTML source (I am thinking legal documents for example).

If that is not enough you can create your own: developer.mozilla.org/en-US/docs/Web/CSS/CSS_counter_styles

Last edited by phiw13 (2024-11-19 05:32:57)


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2024-11-20 04:07:47

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Textile. Add type to ordered lists

phiw13 wrote #338287:

The list-style-type css property could do as well, see the MDN documentation page for a full list and examples.

ol {...

Mind you, sometimes the list-style-type should (must) be specified in the HTML source (I am thinking legal documents for example).

If that is not enough you can create your own: developer.mozilla.org/en-US/docs/Web/CSS/CSS_counter_styles

You are absolutely right. This is a css attribute.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB