Markdown Extension

Markdown Extension for hgweb.

1. Status

This extension is not distributed with Mercurial.

Author: Chris Eldredge

Repository: https://bitbucket.org/celdredge/hgext.markdown

2. Overview

Similar to GitHub, this module looks for a file named ReadMe.md or ReadMe.markdown (case insensitive).

A custom theme is provided that displays the formatted contents on the summary (index) view.

In addition to showing formatted information on the summary view, this module replaces the default file view for .md or .markdown files, enabling you to use the WikiLinks extension to support documentation split across several pages.

3. Installation

  1. Install Python-Markdown (https://python-markdown.github.io/install/)

  2. Clone this repository to /example/hgext.markdown
  3. Add the following to your hgweb config

4. Configuration

Configure your .hgrc to enable the extension by adding following lines:

[web]
templates = /example/hgext.markdown/templates
style = markdown
#optional; 'tip' is default value.
markdown.changeid = tip

[extensions]
hgext.markdown=/example/hgext.markdown

5. See also


CategoryExtensionsByOthers

MarkdownExtension (last edited 2019-08-14 15:55:48 by x)