All Projects β†’ agustinmista β†’ Mdviewer

agustinmista / Mdviewer

Licence: gpl-3.0
Minimalistic Markdown viewer/converter with built-in Css stylesheets support.

Programming Languages

haskell
3896 projects

Projects that are alternatives of or similar to Mdviewer

Marker
πŸ–Š A gtk3 markdown editor
Stars: ✭ 644 (+2376.92%)
Mutual labels:  markdown, pandoc, gtk
Markup.rocks
Pandoc based document editor and converter in your browser.
Stars: ✭ 348 (+1238.46%)
Mutual labels:  markdown, pandoc
Easy Pandoc Templates
A collection of portable pandoc templates with no dependencies
Stars: ✭ 23 (-11.54%)
Mutual labels:  markdown, pandoc
Pandoc Starter
πŸ“„ My pandoc markdown templates and makefiles
Stars: ✭ 443 (+1603.85%)
Mutual labels:  markdown, pandoc
Pandoc Letter
Pandoc template for writing letters in markdown
Stars: ✭ 303 (+1065.38%)
Mutual labels:  markdown, pandoc
Markdown Preview Enhanced
One of the 'BEST' markdown preview extensions for Atom editor!
Stars: ✭ 3,478 (+13276.92%)
Mutual labels:  markdown, pandoc
Summarytools
R Package to Quickly and Neatly Summarize Data
Stars: ✭ 390 (+1400%)
Mutual labels:  markdown, pandoc
Apostrophe
Mirror of
Stars: ✭ 272 (+946.15%)
Mutual labels:  markdown, gtk
Zettlr
A Markdown Editor for the 21st century.
Stars: ✭ 6,099 (+23357.69%)
Mutual labels:  markdown, pandoc
Pandoc
Universal markup converter
Stars: ✭ 24,250 (+93169.23%)
Mutual labels:  markdown, pandoc
Phd thesis markdown
Template for writing a PhD thesis in Markdown
Stars: ✭ 898 (+3353.85%)
Mutual labels:  markdown, pandoc
Pandoc Latex Template
A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
Stars: ✭ 3,750 (+14323.08%)
Mutual labels:  markdown, pandoc
Pandoc Ruby
Ruby wrapper for Pandoc
Stars: ✭ 299 (+1050%)
Mutual labels:  markdown, pandoc
Nb
CLI and local web plain text note‑taking, bookmarking, and archiving with linking, tagging, filtering, search, Git versioning & syncing, Pandoc conversion, + more, in a single portable script.
Stars: ✭ 3,846 (+14692.31%)
Mutual labels:  markdown, pandoc
Panflute
An Pythonic alternative to John MacFarlane's pandocfilters, with extra helper functions
Stars: ✭ 286 (+1000%)
Mutual labels:  markdown, pandoc
Letter Boilerplate
Finest letter typesetting from the command line
Stars: ✭ 374 (+1338.46%)
Mutual labels:  markdown, pandoc
Manubot
Python utilities for Manubot: Manuscripts, open and automated
Stars: ✭ 260 (+900%)
Mutual labels:  markdown, pandoc
Pander
An R Pandoc Writer: Convert arbitrary R objects into markdown
Stars: ✭ 267 (+926.92%)
Mutual labels:  markdown, pandoc
Webkit
Official git mirror of the WebKit repository, https://svn.webkit.org/repository/webkit, future canonical repository.
Stars: ✭ 495 (+1803.85%)
Mutual labels:  gtk, webkit
Crisscross
A Markdown-centric template engine for batch offline document generation.
Stars: ✭ 18 (-30.77%)
Mutual labels:  markdown, pandoc

mdviewer

CircleCI

mdviewer is a minimalistic GTK+ Markdown viewer/converter written in Haskell. It supports using Css stylesheets both from a built-in styles repository or from user provided Css files. It is also possible to export files to Html embedding the selected style into a single self-contained file.

Installation

At the time, mdviewer can be installed both compiling it from source using Stack, or downloading a precompiled binary provided by CircleCI

Prerequisites

Compiling from source using Stack

git clone https://github.com/agustinmista/mdviewer
cd mdviewer

stack setup
stack install gtk2hs-buildtools 
stack install

The installation will usually copy the executable to $HOME/.local/bin, so it is important that you have appended it to your PATH. Other data files such as the styles repository are copied into your Xdg data folder. This is usually $HOME/.local/share/mdviewer.

Downloading a precompiled binary

This process is automated by the install.sh bash script which downloads a precompiled binary from the latest CircleCI build, and the data files from this GitHub repository using Subversion. Make sure you have installed wget and svn before running the installer.

wget https://raw.githubusercontent.com/agustinmista/mdviewer/master/install.sh
chmod +x install.sh
./install.sh

This method will copy the executable to $HOME/.local/bin and the data files to $HOME/.local/share/mdviewer.

Usage

mdviewer currently supports three subcommands:

show

mdviewer show [input] [-s STYLE]

This subcommand launches an interactive WebKit based window where you can use the supported key-bindings to open files, change styles, navigate following links and so on. If you run mdviewer show without specifying an input file, a welcome file is shown.

Interactive controls

The current key-bindings mapping intends to provide a vim-like user experience:

key description
e open file
w save as Html
r reload preview
n set next style
N set previous style
g go to page top
G go to page bottom
z go to previous page
x go to following page
q quit

convert

mdviewer convert input [-o OUTPUT] [-s STYLE]

This subcommand converts a Markdown file into an Html file which optionally embeds an Css stylesheet. If no output file is specified, then the output is saved to input.html.

list

mdviewer list

This subcommand lists the Css stylesheets currently available at the styles repository; you can choose any of them by using the -s/--style flag followed by a style name when calling to show/convert subcommands. If you want to use an external Css stylesheet instead, just use the -s/--style flag providing the path to it and mdviewer will add it to the built-in styles repository for future usage automatically.

Available styles:
  * air
  * foghorn
  * ghostwriter
  * github
  * github-dark
  * godspeed
  * manuscript
  * markdown
  * ...

Acknowledgments

I would like to say thanks to some of the authors of the Css stylesheets built-in into mdviewer:


Please, if you find this software useful don't doubt to give any feedback. PRs are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].