You are here

README.txt in Markdown 8

Same filename and directory in other branches
  1. 5 README.txt
  2. 6 README.txt
  3. 7.2 README.txt
  4. 7 README.txt
Markdown filter Drupal module
=============================

Provides Markdown filter integration for Drupal text formats. The
Markdown syntax is designed to co-exist with HTML, so you can set up
input formats with both HTML and Markdown support. It is also meant to
be as human-readable as possible when left as "source".

There are many different Markdown implementation. Markdown filter can
at the moment use the following:

* PHP Markdown by Michel Fortin <https://michelf.ca/projects/php-markdown/>
* CommonMark <http://commonmark.org>


Installation:
------------

If you are comfortable with composer that is the best way to install both PHP
Markdown and CommonMark. They will then be autoloaded just like other parts of
Drupal 8.

The old way of installation in the libraries directory is only supported for PHP
Markdown. The libraries module is then needed to load the library.

1. Download and install the libraries module https://www.drupal.org/project/libraries.
2. Download the PHP Markdown library from
   https://github.com/michelf/php-markdown/archive/lib.zip, unpack it and place it
   in the "libraries" directory in Drupal root folder, if it doesn't exist you need
   to create it.

Make sure the path becomes "/libraries/php-markdown/Michelf/MarkdownExtra.inc.php".


Markdown editor:
---------------

If you are interested in a Markdown editor please check out
the Markdown editor for BUEditor module.

<http://drupal.org/project/markdowneditor>


Important note about running Markdown with other input filters:
--------------------------------------------------------------

Markdown may conflict with other input filters, depending on the order
in which filters are configured to apply. If using Markdown produces
unexpected markup when configured with other filters, experimenting with
the order of those filters will likely resolve the issue.

Filters that should be run before Markdown filter includes:

* Code Filter
* GeSHI filter for code syntax highlighting

Filters that should be run after Markdown filter includes:

* Typogrify

The "Limit allowed HTML tags" filter is a special case:

For best security, ensure that it is run after the Markdown filter and
that only markup you would like to allow via HTML and/or Markdown is
configured to be allowed.

If you on the other hand want to make sure that all converted Markdown
text is perserved, run it before the Markdown filter. Note that blockquoting
with Markdown doesn't work in this case since "Limit allowed HTML tags" filter
converts the ">" in to "&gt;".


Smartypants support:
-------------------

This module is a continuation of the Markdown with Smartypants module.
It only includes Markdown support and it is now suggested that you use
Typogrify module if you are interested in Smartypants support.

<http://drupal.org/project/typogrify>


Credits:
-------
Markdown created                     by John Gruber: <http://daringfireball.net>
Drupal filter originally             by Noah Mittman: <http://www.teradome.com/>

File

README.txt
View source
  1. Markdown filter Drupal module
  2. =============================
  3. Provides Markdown filter integration for Drupal text formats. The
  4. Markdown syntax is designed to co-exist with HTML, so you can set up
  5. input formats with both HTML and Markdown support. It is also meant to
  6. be as human-readable as possible when left as "source".
  7. There are many different Markdown implementation. Markdown filter can
  8. at the moment use the following:
  9. * PHP Markdown by Michel Fortin
  10. * CommonMark
  11. Installation:
  12. ------------
  13. If you are comfortable with composer that is the best way to install both PHP
  14. Markdown and CommonMark. They will then be autoloaded just like other parts of
  15. Drupal 8.
  16. The old way of installation in the libraries directory is only supported for PHP
  17. Markdown. The libraries module is then needed to load the library.
  18. 1. Download and install the libraries module https://www.drupal.org/project/libraries.
  19. 2. Download the PHP Markdown library from
  20. https://github.com/michelf/php-markdown/archive/lib.zip, unpack it and place it
  21. in the "libraries" directory in Drupal root folder, if it doesn't exist you need
  22. to create it.
  23. Make sure the path becomes "/libraries/php-markdown/Michelf/MarkdownExtra.inc.php".
  24. Markdown editor:
  25. ---------------
  26. If you are interested in a Markdown editor please check out
  27. the Markdown editor for BUEditor module.
  28. Important note about running Markdown with other input filters:
  29. --------------------------------------------------------------
  30. Markdown may conflict with other input filters, depending on the order
  31. in which filters are configured to apply. If using Markdown produces
  32. unexpected markup when configured with other filters, experimenting with
  33. the order of those filters will likely resolve the issue.
  34. Filters that should be run before Markdown filter includes:
  35. * Code Filter
  36. * GeSHI filter for code syntax highlighting
  37. Filters that should be run after Markdown filter includes:
  38. * Typogrify
  39. The "Limit allowed HTML tags" filter is a special case:
  40. For best security, ensure that it is run after the Markdown filter and
  41. that only markup you would like to allow via HTML and/or Markdown is
  42. configured to be allowed.
  43. If you on the other hand want to make sure that all converted Markdown
  44. text is perserved, run it before the Markdown filter. Note that blockquoting
  45. with Markdown doesn't work in this case since "Limit allowed HTML tags" filter
  46. converts the ">" in to ">".
  47. Smartypants support:
  48. -------------------
  49. This module is a continuation of the Markdown with Smartypants module.
  50. It only includes Markdown support and it is now suggested that you use
  51. Typogrify module if you are interested in Smartypants support.
  52. Credits:
  53. -------
  54. Markdown created by John Gruber:
  55. Drupal filter originally by Noah Mittman: