Skip to content

AARNet/files_markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ownCloud Markdown Editor

Extends the text editor in ownCloud with a live preview of markdown files. Inspiration taken from Nextcloud's files_markdown (if you back track a heap of commits)

The previewer has 3 separate views:

  • Editor only
  • Side by side (editor and preview)
  • Preview only

The editor uses the following plugins for rendering markdown:

  • markdown-it for the initial parsing of the markdown
  • markdown-it-texmath - this allows support for TeX math which is rendered using KaTeX. This can be used by surrounding math in $$.
  • markdown-it-checkboxes - this allows the [ ] and [X] operator for rendering checkboxes
  • markdown-it-for-inline - this is used to allow inline images from your ownCloud (eg. ![](/Photos/Paris.jpg)) and for the link anchors to work within the markdown preview.
  • markdown-it-anchor - used for modifying the anchors to work within the markdown preview.
  • highlightjs - for syntax highlighting

The CSS for the markdown preview is taken from sindresorhus's github-markdown-css for a familiar look and feel.

Requirements

This requires ownCloud and the files_texteditor app to be installed.

Installation

  • Clone the app into the ownCloud apps directory:

    git clone https://github.com/mdusher/files_markdown.git

  • Activate the app via the ownCloud web interface or via:

    occ app:enable files_markdown

About

ownCloud Markdown Previewer and Editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •