hardcore-sushi / DroidFS

Encrypted overlay filesystems implementation for Android. Also available on gitea: https://forge.chapril.org/hardcoresushi/DroidFS
GNU Affero General Public License v3.0
652 stars 43 forks source link

HTML document viewer #314

Open khldgit opened 1 month ago

khldgit commented 1 month ago

Description:

I would like to request a feature enhancement to support Markdown and inline HTML parsing in the built-in file viewer. This would be particularly useful for users who want to use the app as a secure note-taking solution, allowing them to view their Markdown files in a formatted, readable manner while encrypted.

Current Behavior:

Proposed Features:

  1. Markdown and Inline HTML Parsing:
  1. Dual-Mode: Rendered View and Raw Text Editing:
  1. Thumbnail for Markdown Files:

Use Case:

Justification:

Benefits:

Potential Challenges:

hardcore-sushi commented 1 month ago

Markdown support seems to be out of scope of the DroidFS project. Advanced file formats should rather be handled by dedicated apps via the "Allow opening files with other applications" unsafe feature or through the document provider API enabled by "Expose open volumes". The goal of DroidFS is not to rebuild the entire Android ecosystem for encrypted volumes.

That said, we can consider adding a simple HTML document viewer to the app using a webview, in the manner of the PDF viewer.

khldgit commented 1 month ago

The HTML document viewer for this app is a great feature, and I'm looking forward to it!

machschnell commented 14 hours ago

I'd like to see the HTML functionality too though for security reasons the HTML document should probably be limited to accessing local files, i.e. files in the open volume, i.e. for CSS, images, etc.

I don't care about markdown.