Open khldgit opened 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.
The HTML document viewer for this app is a great feature, and I'm looking forward to it!
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.
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:
At present, Markdown files are treated as plain text, which limits the app's utility for users who rely on Markdown syntax for note-taking or documentation purposes.
The app already allows encrypted images to be viewed, but it lacks the ability to render Markdown content in a structured and readable format.
Proposed Features:
Add a Markdown parser to render
.md
files with full Markdown support, including headers, lists, links, and code blocks, when viewed within the encrypted environment.Allow for inline HTML parsing, enabling users to incorporate custom HTML elements in their Markdown notes for additional formatting or functionality.
Ensure that the parsing and rendering work seamlessly with encrypted files, providing users with a secure, private note-taking experience.
Enable a toggle between the formatted (rendered) Markdown view and a raw text editor for quick edits or adjustments.
Include basic text-editing functionalities, such as syntax highlighting for Markdown and HTML, along with search, find & replace, and undo/redo functionality.
Add a visual thumbnail icon for Markdown files in the file browser, indicating that the file type is Markdown. This could be a simple text document icon or a Markdown-specific icon.
Ensure that the thumbnail is displayed consistently alongside other file types (like PDF) for easy identification.
Use Case:
Many users rely on Markdown for note-taking, journaling, and writing documentation. By adding Markdown and inline HTML parsing, the app can become a powerful and secure tool for private note-taking, offering more flexibility for those who need formatted text.
This will allow users to create and view notes with complex formatting and links while maintaining the privacy benefits provided by encryption.
Justification:
Since the app already supports viewing encrypted images, extending this capability to Markdown files would enhance its functionality and make it more versatile, especially for users who want to use the app for securely storing and viewing notes.
Markdown is widely used due to its simplicity and readability, even in raw form. Adding support for Markdown parsing would appeal to users looking for a secure, privacy-focused note-taking solution.
Benefits:
Users will be able to securely store and view their formatted notes, enhancing the app's utility beyond just file encryption.
This feature would provide an all-in-one solution for users who want a private, encrypted space to take and manage their notes in Markdown format.
Supporting inline HTML allows for more advanced note customization and formatting, further increasing the app's value as a versatile tool.
Potential Challenges: