Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support to Persian ordered list #203

Open
ekm507 opened this issue Apr 14, 2023 · 1 comment
Open

add support to Persian ordered list #203

ekm507 opened this issue Apr 14, 2023 · 1 comment

Comments

@ekm507
Copy link

ekm507 commented Apr 14, 2023

Hi!

in markdown documents there can be ordered lists with numbers from other languages. such as Persian, Arabic, etc.
is it possible to add a support for them?

it does not support them right now:
image

below is a vim regex that matches all English, Arabic and Persian ordered list beginings which is a modified version of this

^\%(\t\| \{0,4}\)\<[0-9۰-۹٠-٩]\+\.\%(\s\+\S\)\@=

although I know it does not support all languages. like chinese, indian and others.

also something like \p{N} exists in regex to match any digit from any language but I don't know how to write it in vim style.

can this feature be added to vim? (and thus to other editors like neovim)

@tpope
Copy link
Owner

tpope commented Apr 16, 2023

۱. list
۲. test

Based on the above, GitHub flavored Markdown at least does not appear to support this. Can you name an implementation that does?

also something like \p{N} exists in regex to match any digit from any language but I don't know how to write it in vim style.

Vim regexps don't have anything like this, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants