-
Notifications
You must be signed in to change notification settings - Fork 370
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
View-Mode: AsciiDoc convert support #1880
Comments
To my understanding, this is a ruby gem and contains native code. Meaning Markor gets from all-architecture-supported-by-one-pure-java-application APK to requiring a own build per platform. Can you please check this? |
I have to check. My idea was
Can we keep this issue as a placeholder, until clarification? IMHO: In General, there would be several ways:
Also for the preview, I can imagine a light way: the user can install a browser (like kiwi browser), supporting chrome extensions. Then he can implement the AsciiDoc plugin to render AsciiDoc as html. And somehow Markor will make the adoc files in any way available for the browser, but rendering will be an external job. Currently, I am using "NiM Web Server" on Android, to provide the content to the web browser. |
you can move this new comment to the pull request and remove it here. not really is about the issue itself, but about the goals of the pull request. |
it could be converted from an issue into a discussion? If it is just a comment to the pull request, it could be lost. |
It won't be lost unless somebody deletes it, which we don't do. Wherever it is written to. And splitting up to discuss something on 5 different places not makes it easier 😄 . So please just write in the merge request 👍🏻 |
Suggestion and seemingly the least bloating option without too much dependencies: so like |
I have just checked - asciidoctor.js - it's a similar lib as asciidoctorJ - Ruby port for JS. And size is similar. |
I don't know what to do. |
thanks for trying both. Increasing minimum Android version to 26 (and locking out a huge part of Markor users) is definetley no option. So as you got asciidoc.js to work, nice! How much (filesize) are the (js/css) files you need to add? And how much does the size of the apk increase by that roughly? As far I understood asciidocjs basically is a ruby-installation-compiled-to-javascript plus the asciidoc stuff (which could be big in terms of size). Btw dont worry about making about all features (like html export) too much, it's OK to make a merge request with the bare minimum for first 😃. |
10569KB |
I have created a pr So, actually there is still a problem - need to support dark mode. |
Regarding dark mode I have a idea. So instead of adding multiple files, or manipulating color hex strings by i.e. search+replace at runtime....It might be a good idea to use CSS variables instead. So to i.e. change the most important stuff to i.e. What do you think about that? If you think thats a good idea, I can help by taking care of the rather generic stuff and ou would need to take care to change the asciidoctor css file to use --var. |
@gsantner About apk size: |
Markor has for most things already some standard/default colors, so don't worry too much about it. For many things it might be enough to not specify any color at all at asciidoctor.css (i.e. removing the line). The point was, due your change of adding asciidocjs the resulting binary file size increased by ~half megabyte. It's not about anything else. And I'd say it's a increase that doesn't hurt. |
Regarding colors: I tried to select colors, which are fine for red-green color deficiency individuals, like me. I tried to optimize them for a light and a dark theme. But this was related to the editor for "source code". In General I am fine with the default light theme, but regarding to |
Wow. I tried to find something like that but no luck. I'll check, thanks! |
So, Any ideas what needs to be improved next? |
So you would be interested in more contributions? Very welcome! Generally said, contributors should do what they are interested. Unlike commercial products there is nothing assigned, pre-announced or pre-decided ""this features is worked on and released in next version"" 😄 . What I suggest to do next is: Make a proper AsciiDoc example document showcasing all of it's features and syntax. Similar to the markdown-reference.md file. Also I can see that the image links in the existing asciidoc sample do not render. But they do at Markdown sample, so should be doable. I do not use asciidoc (currently). So it would be especially important that AsciiDoc is good wrapped up from all directions by somebody who knows it good, since I probably won't touch it too much. |
Light theme for Asciidoc preview 😍 |
Oh, my fault - I really thought I implemented it correctly! |
Description
After the implementation of #808 (new format: AsciiDoc) more features like AsciiDoc Preview should be implemented.
For this purpose, there is "AsciidoctorJ: Java Bindings for Asciidoctor":
https://docs.asciidoctor.org/asciidoctorj/latest/
And what and how to install a preview (with it, among other things):
Why a separate issue?
I am ready to assigned. But maybe some support would be required.
Information
Android version:
Device:
App Version:
Source
F-Droid
Format / File type
Something else (-> Additional info)
Additional info / Log
The text was updated successfully, but these errors were encountered: