Markdown Extra

Categories

Component ID

1854768

Component name

Markdown Extra

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

I once fell in love with markdown language and still stick to it. This module provides some usefull extensions that help using markdown syntax in the drupal context.

Alias Filter

I assume you use path alias with autopath module.
When placing an internal link in your content, you might get into trouble because you either use the alias and get a broken link if the page title of the link destination changes (or whatever token the autopath is based on) ... or you avoid this by using system style links like node/123 and end up having duplicate content (which can be fixed by adding other modules like global redirect).

The obvious solution would be to use the system style link and let a filter replace it with the path alias. Markdown extra does exactly this.

Write [linked text](node/56) to get the alias.

Image Filter

The markdown image syntax is quite simple. This modules expands its options and formats the output as a HTML 5 figure tag.

  • css classes allowing you to align / float the image within the surrounding content
  • mediastyle allowing to choose a mediastyle for image rendering
  • caption allowing to have a image caption

This is work in progress.

Installation

  • place the module in your sites/all/modules directory
  • activate the module
  • activate the filter under a format also using markdown admin/config/content/formats
  • make sure to arrange the filters to let markdown do the work AFTER this module