gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.51k stars 348 forks source link

Asciidoc :icons implementation #2172

Open Pyblo opened 7 months ago

Pyblo commented 7 months ago

⚠️ This issue respects the following points: ⚠️

Description

  1. I would like for implementation of asciidoc icons icon:heart[role=red]. That would help greatly, since icons can be colored and have many great inline formating features.

It would great if the :icons: font mode worked, but having at least the :icons: svg + :iconsdir: ./icons mode worked.

Information

Android version: 11 Device: xiaomi Mi 10 lite 5g App Version: v2.11.1(148)

Source

F-Droid

Format / File type

Something else (-> Additional info)

Additional info / Log

- it is for Asciidoc format 
- currently we can use the svg image:{icon_name} as a workaround, but it lacks colouring and using it inline is not straightforward.
Pyblo commented 7 months ago

While testing all the other icon implementation on with Asciidoctor, i noticed, that The only way to go is using :icons: font. Unfortunately all other modes display icons that are not properly sized to the text size in lines.

gsantner commented 7 months ago

Please feel free to work on it and create a merge request to make the improvements available to others.

gsantner commented 3 months ago

notice: @aisbergde implemented most of asciidoc support, so assume have an good idea about this too.

aisbergde commented 3 months ago

I only implemented the formatting support in the editor mode (plain text). The preview was implemented by someone else. Is the request related to the preview or to the formatting while editing?