You are here

README.txt in Markdown 7.2

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

Provides Markdown filter integration for Drupal input 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 uses
"PHP Markdown extra" that includes many common and useful extensions to
the original Markdown. This includes tables, footnotes and definition
lists.

Read more about Markdown at:

* Original Markdown Syntax by John Gruber
  <http://daringfireball.net/projects/markdown/syntax>
* PHP Markdown Extra by Michel Fortin
  <http://michelf.ca/projects/php-markdown/extra/>


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>


Installation:
------------
1. Download and unpack the Markdown and Libraries modules in your modules folder
   (this will usually be "sites/all/modules/").
2. Go to "Administer" -> "Modules" and enable the modules.
3. Download and unpack the Markdown Extra library in your libraries folder (this
   will usually be "sites/all/libraries"). It's available at
   http://michelf.ca/projects/php-markdown/extra/
   Drush users can run `drush markdown-plugin`.
4. Set up a new text format or add Markdown support to an text format at
   Administer -> Configuration -> Content Authoring -> Text formats

Alternative Library Support:
---------------------------

Since Markdown module started supporting Libraries module, an extending module
providing an alternative Markdown library should declare hook_libraries_info_alter
and change $libraries['markdown'] array.

Credits:
-------
Markdown created                     by John Gruber: <http://daringfireball.net>
PHP executions                       by Michel Fortin: <http://www.michelf.com/>
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 input 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 uses
  8. "PHP Markdown extra" that includes many common and useful extensions to
  9. the original Markdown. This includes tables, footnotes and definition
  10. lists.
  11. Read more about Markdown at:
  12. * Original Markdown Syntax by John Gruber
  13. * PHP Markdown Extra by Michel Fortin
  14. Markdown editor:
  15. ---------------
  16. If you are interested in a Markdown editor please check out
  17. the Markdown editor for BUEditor module.
  18. Important note about running Markdown with other input filters:
  19. --------------------------------------------------------------
  20. Markdown may conflict with other input filters, depending on the order
  21. in which filters are configured to apply. If using Markdown produces
  22. unexpected markup when configured with other filters, experimenting with
  23. the order of those filters will likely resolve the issue.
  24. Filters that should be run before Markdown filter includes:
  25. * Code Filter
  26. * GeSHI filter for code syntax highlighting
  27. Filters that should be run after Markdown filter includes:
  28. * Typogrify
  29. The "Limit allowed HTML tags" filter is a special case:
  30. For best security, ensure that it is run after the Markdown filter and
  31. that only markup you would like to allow via HTML and/or Markdown is
  32. configured to be allowed.
  33. If you on the other hand want to make sure that all converted Markdown
  34. text is perserved, run it before the Markdown filter. Note that blockquoting
  35. with Markdown doesn't work in this case since "Limit allowed HTML tags" filter
  36. converts the ">" in to ">".
  37. Smartypants support:
  38. -------------------
  39. This module is a continuation of the Markdown with Smartypants module.
  40. It only includes Markdown support and it is now suggested that you use
  41. Typogrify module if you are interested in Smartypants support.
  42. Installation:
  43. ------------
  44. 1. Download and unpack the Markdown and Libraries modules in your modules folder
  45. (this will usually be "sites/all/modules/").
  46. 2. Go to "Administer" -> "Modules" and enable the modules.
  47. 3. Download and unpack the Markdown Extra library in your libraries folder (this
  48. will usually be "sites/all/libraries"). It's available at
  49. http://michelf.ca/projects/php-markdown/extra/
  50. Drush users can run `drush markdown-plugin`.
  51. 4. Set up a new text format or add Markdown support to an text format at
  52. Administer -> Configuration -> Content Authoring -> Text formats
  53. Alternative Library Support:
  54. ---------------------------
  55. Since Markdown module started supporting Libraries module, an extending module
  56. providing an alternative Markdown library should declare hook_libraries_info_alter
  57. and change $libraries['markdown'] array.
  58. Credits:
  59. -------
  60. Markdown created by John Gruber:
  61. PHP executions by Michel Fortin:
  62. Drupal filter originally by Noah Mittman: