"Markdown Viewer" is a simple GTK-based application to view Markdown files. This application allows users to:
- Convert the displayed Markdown content to HTML.
- Save the rendered HTML content to a file.
- Preview the HTML content in a web browser.
gtk3
- The GTK+ graphical UI library.cmark
- A C implementation of CommonMark.
Inside the application:
- Click on "Open .md File" to select a Markdown file you wish to view.
- The Markdown content will be displayed in the main view.
- Click on "Save HTML" to save the rendered HTML content to a file.
- Click on "Open in Browser" to preview the rendered content in your default web browser.
- Markdown Display: The application reads and displays the content of Markdown files.
- HTML Rendering: Uses the
cmark
library to convert Markdown content to an HTML string. - File Interactions: Provides options to open Markdown files and save the rendered HTML content.
- Browser Preview: Allows users to view the rendered HTML in a browser.
- The "Open in Browser" function uses
xdg-open temp.html
which works for Linux-based systems. For cross-platform compatibility, this might need adjustments.
Feel free to fork, modify, and submit pull requests. Ensure you test your code before submitting any changes.
This project is open-source. Ensure you reference it if used for any of your projects.