Skip to content
/ miew Public

Online markdown to html visualizer for .md files list. Keyboard navigation support + .md files list generator.

License

Notifications You must be signed in to change notification settings

guinetn/miew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Miew: Markdowns Viewer

Online 'one click' markdown to html file translator. The web interface list the available files, enumerated in a simple .json file created by a short powershell script. Deploy this site to github pages and you're wiki is on the way!

miew screenshoot

FEATURES

  • Display a list of files defined in .json
  • Click a file to visualize it as html
  • Reopen last opened file at startup (localstorage)
  • A tool is available to import files list into the .json file
  • Commands:

Press key [F]: Change font
Press key [S]: Change font size
Press key [C]: Show previous file (move up in the file list)
Press key [V]: Show next file (move down in the file list)

SETTINGS

  1. Put your .md files in a folder, e.g. '/md' folder
  2. Add the list of these .md files into md-files.json
{ 
  "files":  [ ".\\md\\abc.md", ".\\md\\def.md", ".\\md\\ghi.md", ".\\md\\jkl.md", ".\\md\\mno.md"]
}

I create a generator to produce the .json file containing the list of the .md files you want to see:

.\generate_json.ps1 $PWD/md
.\generate_json.ps1 $PWD/md "md-files.json"

  • 1st arg: folder to explore (must be a subfolder of the current ($pwd) folder)
  • 2nd (optional) arg: output filename

START

Open index.html
Click on status bar "Go live", this will run LiveServer, a VSCode extension

TECHNICAL NOTES

  • md-files.json contains the file list (with a relative paths to index.html). It can be generated by generate_json.ps1

  • It use ShowdownJS for the md to html transformation

Showdown: A JS Markdown to HTML bidirectional converter

About

Online markdown to html visualizer for .md files list. Keyboard navigation support + .md files list generator.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published