guard-mthaml 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (341) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +34 -0
  3. data/lib/guard/mthaml.rb +140 -0
  4. data/lib/guard/mthaml/compiler/MtHaml.php +255 -0
  5. data/lib/guard/mthaml/templates/Guardfile +12 -0
  6. data/lib/guard/mthaml/version.rb +5 -0
  7. data/vendor/autoload.php +7 -0
  8. data/vendor/coffeescript/coffeescript/LICENSE +22 -0
  9. data/vendor/coffeescript/coffeescript/README.md +96 -0
  10. data/vendor/coffeescript/coffeescript/composer.json +23 -0
  11. data/vendor/coffeescript/coffeescript/grammar.y +309 -0
  12. data/vendor/coffeescript/coffeescript/make.php +115 -0
  13. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Compiler.php +76 -0
  14. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Error.php +15 -0
  15. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Helpers.php +116 -0
  16. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Init.php +96 -0
  17. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Lexer.php +1356 -0
  18. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Nodes.php +105 -0
  19. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Parser.php +3326 -0
  20. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Rewriter.php +552 -0
  21. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Scope.php +196 -0
  22. data/vendor/coffeescript/coffeescript/src/CoffeeScript/SyntaxError.php +9 -0
  23. data/vendor/coffeescript/coffeescript/src/CoffeeScript/Value.php +20 -0
  24. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Access.php +31 -0
  25. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Arr.php +69 -0
  26. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Assign.php +353 -0
  27. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Base.php +288 -0
  28. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Block.php +294 -0
  29. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Call.php +283 -0
  30. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Class.php +282 -0
  31. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Closure.php +49 -0
  32. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Code.php +203 -0
  33. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Comment.php +39 -0
  34. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Existence.php +42 -0
  35. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Extends.php +26 -0
  36. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/For.php +250 -0
  37. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/If.php +161 -0
  38. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/In.php +99 -0
  39. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Index.php +27 -0
  40. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Literal.php +96 -0
  41. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Obj.php +126 -0
  42. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Op.php +292 -0
  43. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Param.php +119 -0
  44. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Parens.php +45 -0
  45. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Range.php +225 -0
  46. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Return.php +56 -0
  47. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Slice.php +47 -0
  48. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Splat.php +100 -0
  49. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Switch.php +121 -0
  50. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Throw.php +37 -0
  51. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Try.php +79 -0
  52. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/Value.php +210 -0
  53. data/vendor/coffeescript/coffeescript/src/CoffeeScript/yy/While.php +112 -0
  54. data/vendor/coffeescript/coffeescript/tests/cases/arrays.coffee +77 -0
  55. data/vendor/coffeescript/coffeescript/tests/cases/assignment.coffee +352 -0
  56. data/vendor/coffeescript/coffeescript/tests/cases/booleans.coffee +21 -0
  57. data/vendor/coffeescript/coffeescript/tests/cases/classes.coffee +681 -0
  58. data/vendor/coffeescript/coffeescript/tests/cases/comments.coffee +207 -0
  59. data/vendor/coffeescript/coffeescript/tests/cases/compilation.coffee +72 -0
  60. data/vendor/coffeescript/coffeescript/tests/cases/comprehensions.coffee +501 -0
  61. data/vendor/coffeescript/coffeescript/tests/cases/control_flow.coffee +430 -0
  62. data/vendor/coffeescript/coffeescript/tests/cases/eval.coffee +29 -0
  63. data/vendor/coffeescript/coffeescript/tests/cases/exception_handling.coffee +102 -0
  64. data/vendor/coffeescript/coffeescript/tests/cases/formatting.coffee +146 -0
  65. data/vendor/coffeescript/coffeescript/tests/cases/function_invocation.coffee +552 -0
  66. data/vendor/coffeescript/coffeescript/tests/cases/functions.coffee +188 -0
  67. data/vendor/coffeescript/coffeescript/tests/cases/helpers.coffee +96 -0
  68. data/vendor/coffeescript/coffeescript/tests/cases/importing.coffee +18 -0
  69. data/vendor/coffeescript/coffeescript/tests/cases/interpolation.coffee +138 -0
  70. data/vendor/coffeescript/coffeescript/tests/cases/javascript_literals.coffee +10 -0
  71. data/vendor/coffeescript/coffeescript/tests/cases/numbers.coffee +76 -0
  72. data/vendor/coffeescript/coffeescript/tests/cases/objects.coffee +271 -0
  73. data/vendor/coffeescript/coffeescript/tests/cases/operators.coffee +277 -0
  74. data/vendor/coffeescript/coffeescript/tests/cases/option_parser.coffee +43 -0
  75. data/vendor/coffeescript/coffeescript/tests/cases/ranges.coffee +88 -0
  76. data/vendor/coffeescript/coffeescript/tests/cases/regexps.coffee +63 -0
  77. data/vendor/coffeescript/coffeescript/tests/cases/scope.coffee +43 -0
  78. data/vendor/coffeescript/coffeescript/tests/cases/slicing_and_splicing.coffee +143 -0
  79. data/vendor/coffeescript/coffeescript/tests/cases/soaks.coffee +134 -0
  80. data/vendor/coffeescript/coffeescript/tests/cases/strict.coffee +155 -0
  81. data/vendor/coffeescript/coffeescript/tests/cases/strings.coffee +107 -0
  82. data/vendor/coffeescript/coffeescript/tests/css/style.css +43 -0
  83. data/vendor/coffeescript/coffeescript/tests/index.php +119 -0
  84. data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.1.1.js +8 -0
  85. data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.2.0.js +8 -0
  86. data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.3.0.js +8 -0
  87. data/vendor/coffeescript/coffeescript/tests/js/lib/coffeescript_1.3.1.js +8 -0
  88. data/vendor/coffeescript/coffeescript/tests/js/lib/diff.js +276 -0
  89. data/vendor/coffeescript/coffeescript/tests/js/main.js +123 -0
  90. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/LICENSE.txt +10 -0
  91. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/Lempar.php +948 -0
  92. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Action.php +257 -0
  93. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/ActionTable.php +299 -0
  94. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Config.php +574 -0
  95. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Data.php +1857 -0
  96. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Parser.php +851 -0
  97. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/PropagationLink.php +126 -0
  98. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Rule.php +144 -0
  99. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/State.php +283 -0
  100. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/Symbol.php +288 -0
  101. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/PHP/ParserGenerator/cli.php +5 -0
  102. data/vendor/coffeescript/coffeescript/vendor/ParserGenerator/ParserGenerator.php +811 -0
  103. data/vendor/composer/ClassLoader.php +383 -0
  104. data/vendor/composer/autoload_classmap.php +9 -0
  105. data/vendor/composer/autoload_namespaces.php +12 -0
  106. data/vendor/composer/autoload_psr4.php +10 -0
  107. data/vendor/composer/autoload_real.php +50 -0
  108. data/vendor/composer/installed.json +166 -0
  109. data/vendor/michelf/php-markdown/License.md +36 -0
  110. data/vendor/michelf/php-markdown/Michelf/Markdown.inc.php +10 -0
  111. data/vendor/michelf/php-markdown/Michelf/Markdown.php +3117 -0
  112. data/vendor/michelf/php-markdown/Michelf/MarkdownExtra.inc.php +11 -0
  113. data/vendor/michelf/php-markdown/Michelf/MarkdownExtra.php +38 -0
  114. data/vendor/michelf/php-markdown/Michelf/MarkdownInterface.inc.php +9 -0
  115. data/vendor/michelf/php-markdown/Michelf/MarkdownInterface.php +37 -0
  116. data/vendor/michelf/php-markdown/Readme.md +305 -0
  117. data/vendor/michelf/php-markdown/Readme.php +31 -0
  118. data/vendor/michelf/php-markdown/composer.json +31 -0
  119. data/vendor/mthaml/mthaml/CHANGELOG +48 -0
  120. data/vendor/mthaml/mthaml/LICENSE +44 -0
  121. data/vendor/mthaml/mthaml/README.markdown +262 -0
  122. data/vendor/mthaml/mthaml/composer.json +45 -0
  123. data/vendor/mthaml/mthaml/docs/Makefile +153 -0
  124. data/vendor/mthaml/mthaml/docs/_static/mthaml.css +30 -0
  125. data/vendor/mthaml/mthaml/docs/_theme/mthaml/theme.conf +4 -0
  126. data/vendor/mthaml/mthaml/docs/conf.py +242 -0
  127. data/vendor/mthaml/mthaml/docs/index.rst +18 -0
  128. data/vendor/mthaml/mthaml/docs/twig-syntax.rst +274 -0
  129. data/vendor/mthaml/mthaml/examples/README.md +5 -0
  130. data/vendor/mthaml/mthaml/examples/autoload.php +8 -0
  131. data/vendor/mthaml/mthaml/examples/example-php.haml +5 -0
  132. data/vendor/mthaml/mthaml/examples/example-php.php +37 -0
  133. data/vendor/mthaml/mthaml/examples/example-twig-noext.twig +11 -0
  134. data/vendor/mthaml/mthaml/examples/example-twig.haml +9 -0
  135. data/vendor/mthaml/mthaml/examples/example-twig.php +60 -0
  136. data/vendor/mthaml/mthaml/examples/example.twig.haml +8 -0
  137. data/vendor/mthaml/mthaml/lib/MtHaml/Autoloader.php +22 -0
  138. data/vendor/mthaml/mthaml/lib/MtHaml/Environment.php +178 -0
  139. data/vendor/mthaml/mthaml/lib/MtHaml/Escaping.php +33 -0
  140. data/vendor/mthaml/mthaml/lib/MtHaml/Exception.php +9 -0
  141. data/vendor/mthaml/mthaml/lib/MtHaml/Exception/SyntaxErrorException.php +9 -0
  142. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/AbstractFilter.php +43 -0
  143. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Cdata.php +16 -0
  144. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/CoffeeScript.php +33 -0
  145. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Css.php +26 -0
  146. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Escaped.php +22 -0
  147. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/FilterInterface.php +15 -0
  148. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Javascript.php +26 -0
  149. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less.php +27 -0
  150. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less/LeafoLess.php +20 -0
  151. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Less/OyejorgeLess.php +23 -0
  152. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown.php +58 -0
  153. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/CebeMarkdown.php +22 -0
  154. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Ciconia.php +21 -0
  155. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php +21 -0
  156. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/Parsedown.php +21 -0
  157. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Php.php +37 -0
  158. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Plain.php +24 -0
  159. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Preserve.php +19 -0
  160. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Scss.php +37 -0
  161. data/vendor/mthaml/mthaml/lib/MtHaml/Filter/Twig.php +47 -0
  162. data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/Indentation.php +96 -0
  163. data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/IndentationException.php +9 -0
  164. data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/IndentationInterface.php +50 -0
  165. data/vendor/mthaml/mthaml/lib/MtHaml/Indentation/Undefined.php +41 -0
  166. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Comment.php +71 -0
  167. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Doctype.php +96 -0
  168. data/vendor/mthaml/mthaml/lib/MtHaml/Node/EscapableAbstract.php +19 -0
  169. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Filter.php +51 -0
  170. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Insert.php +42 -0
  171. data/vendor/mthaml/mthaml/lib/MtHaml/Node/InterpolatedString.php +73 -0
  172. data/vendor/mthaml/mthaml/lib/MtHaml/Node/NestAbstract.php +117 -0
  173. data/vendor/mthaml/mthaml/lib/MtHaml/Node/NestInterface.php +10 -0
  174. data/vendor/mthaml/mthaml/lib/MtHaml/Node/NodeAbstract.php +77 -0
  175. data/vendor/mthaml/mthaml/lib/MtHaml/Node/ObjectRefClass.php +42 -0
  176. data/vendor/mthaml/mthaml/lib/MtHaml/Node/ObjectRefId.php +42 -0
  177. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Root.php +35 -0
  178. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Run.php +71 -0
  179. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Statement.php +45 -0
  180. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Tag.php +90 -0
  181. data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttribute.php +62 -0
  182. data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttributeInterpolation.php +24 -0
  183. data/vendor/mthaml/mthaml/lib/MtHaml/Node/TagAttributeList.php +24 -0
  184. data/vendor/mthaml/mthaml/lib/MtHaml/Node/Text.php +37 -0
  185. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Autoclose.php +25 -0
  186. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Escaping.php +105 -0
  187. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/MergeAttrs.php +110 -0
  188. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Midblock.php +37 -0
  189. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/NodeVisitorAbstract.php +226 -0
  190. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/NodeVisitorInterface.php +97 -0
  191. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/PhpRenderer.php +288 -0
  192. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/Printer.php +265 -0
  193. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/RendererAbstract.php +581 -0
  194. data/vendor/mthaml/mthaml/lib/MtHaml/NodeVisitor/TwigRenderer.php +252 -0
  195. data/vendor/mthaml/mthaml/lib/MtHaml/Parser.php +862 -0
  196. data/vendor/mthaml/mthaml/lib/MtHaml/Parser/Buffer.php +147 -0
  197. data/vendor/mthaml/mthaml/lib/MtHaml/Runtime.php +218 -0
  198. data/vendor/mthaml/mthaml/lib/MtHaml/Runtime/AttributeInterpolation.php +16 -0
  199. data/vendor/mthaml/mthaml/lib/MtHaml/Runtime/AttributeList.php +16 -0
  200. data/vendor/mthaml/mthaml/lib/MtHaml/Support/Php/Executor.php +157 -0
  201. data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Extension.php +47 -0
  202. data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Lexer.php +48 -0
  203. data/vendor/mthaml/mthaml/lib/MtHaml/Support/Twig/Loader.php +81 -0
  204. data/vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php +23 -0
  205. data/vendor/mthaml/mthaml/lib/MtHaml/Target/TargetAbstract.php +87 -0
  206. data/vendor/mthaml/mthaml/lib/MtHaml/Target/TargetInterface.php +12 -0
  207. data/vendor/mthaml/mthaml/lib/MtHaml/Target/Twig.php +23 -0
  208. data/vendor/mthaml/mthaml/lib/MtHaml/TreeBuilder.php +100 -0
  209. data/vendor/mthaml/mthaml/lib/MtHaml/TreeBuilderException.php +9 -0
  210. data/vendor/mthaml/mthaml/phpunit.xml +25 -0
  211. data/vendor/mthaml/mthaml/test/MtHaml/Tests/EnvironmentTest.php +59 -0
  212. data/vendor/mthaml/mthaml/test/MtHaml/Tests/HamlSpecTest.php +83 -0
  213. data/vendor/mthaml/mthaml/test/MtHaml/Tests/IndentationTest.php +140 -0
  214. data/vendor/mthaml/mthaml/test/MtHaml/Tests/Node/DoctypeTest.php +51 -0
  215. data/vendor/mthaml/mthaml/test/MtHaml/Tests/Node/NodeTest.php +110 -0
  216. data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitor/PhpRendererTest.php +113 -0
  217. data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitor/TwigRendererTest.php +68 -0
  218. data/vendor/mthaml/mthaml/test/MtHaml/Tests/NodeVisitorsTest.php +44 -0
  219. data/vendor/mthaml/mthaml/test/MtHaml/Tests/Parser/BufferTest.php +77 -0
  220. data/vendor/mthaml/mthaml/test/MtHaml/Tests/ParserTest.php +47 -0
  221. data/vendor/mthaml/mthaml/test/MtHaml/Tests/RuntimeTest.php +356 -0
  222. data/vendor/mthaml/mthaml/test/MtHaml/Tests/Support/Php/ExecutorTest.php +83 -0
  223. data/vendor/mthaml/mthaml/test/MtHaml/Tests/Support/Twig/LoaderTest.php +65 -0
  224. data/vendor/mthaml/mthaml/test/MtHaml/Tests/TestCase.php +49 -0
  225. data/vendor/mthaml/mthaml/test/MtHaml/Tests/TestCaseTest.php +50 -0
  226. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/Support/Php/Executor.001.haml +1 -0
  227. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/attr_list_php.test +20 -0
  228. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/attr_list_twig.test +12 -0
  229. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_php.test +16 -0
  230. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/boolean_attr_twig.test +16 -0
  231. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug28_php.test +15 -0
  232. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug28_twig.test +15 -0
  233. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug42.test +13 -0
  234. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/bug8_twig.test +10 -0
  235. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/coffeescript_filter.test +31 -0
  236. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/comments.test +26 -0
  237. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/cond_cmt.test +25 -0
  238. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype.test +18 -0
  239. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_html4.test +20 -0
  240. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_invalid.test +12 -0
  241. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_invalid_xhtml.test +12 -0
  242. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_php.test +18 -0
  243. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/doctype_xhtml.test +30 -0
  244. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/filters.test +51 -0
  245. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/insert_non_echo_php.test +11 -0
  246. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/insert_non_echo_twig.test +11 -0
  247. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/interpolation_in_html_attrs_php.test +31 -0
  248. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/interpolation_in_html_attrs_twig.test +31 -0
  249. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/less_filter_leafo.test +33 -0
  250. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/less_filter_oyejorge.test +49 -0
  251. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test +35 -0
  252. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_ciconia.test +36 -0
  253. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_michelf.test +34 -0
  254. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_parsedown.test +31 -0
  255. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_optimization_filter_michelf.test +23 -0
  256. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/mergeattrs.test +18 -0
  257. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_inner_whitespace.test +77 -0
  258. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/nuke_outer_whitespace.test +122 -0
  259. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_php.test +14 -0
  260. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/object_ref_twig.test +14 -0
  261. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php.test +109 -0
  262. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_autoescaping.test +22 -0
  263. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_autoescaping_once.test +25 -0
  264. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_blocks.test +29 -0
  265. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/php_filters.test +42 -0
  266. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/scss_filter.test +32 -0
  267. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/strip_inline_comments_php.test +22 -0
  268. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/test.test +24 -0
  269. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/trailing_semicolon_php.test +14 -0
  270. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/try_catch_php.test +17 -0
  271. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig.test +112 -0
  272. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_blocks.test +29 -0
  273. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_filters.test +37 -0
  274. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/twig_whitespace.test +32 -0
  275. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/whitespace.test +63 -0
  276. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/autoclose.test +30 -0
  277. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping.test +52 -0
  278. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping_attr_once.test +52 -0
  279. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/escaping_html_false.test +52 -0
  280. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/mergeattrs.test +26 -0
  281. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/midblock.test +54 -0
  282. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/nodevisitors/midblock_002.test +32 -0
  283. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attr_list.test +14 -0
  284. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs.test +42 -0
  285. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_002.test +35 -0
  286. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_003.test +30 -0
  287. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/attrs_html_linebreak.test +17 -0
  288. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/blocks.test +27 -0
  289. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/blocks_002.test +15 -0
  290. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/boolean_attr.test +19 -0
  291. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/bug28.test +15 -0
  292. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/bug8.test +11 -0
  293. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/cond_cmt.test +23 -0
  294. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/doctype.test +11 -0
  295. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/double_equal.test +7 -0
  296. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/empty_line_after_multiline.test +10 -0
  297. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_001.test +8 -0
  298. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_002.test +8 -0
  299. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_003.test +8 -0
  300. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_004.test +6 -0
  301. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_005.test +5 -0
  302. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_006.test +7 -0
  303. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_007.test +7 -0
  304. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_008.test +7 -0
  305. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_009.test +5 -0
  306. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_010.test +5 -0
  307. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_013.test +5 -0
  308. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_016.test +7 -0
  309. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_017.test +8 -0
  310. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_018.test +6 -0
  311. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_019.test +6 -0
  312. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/errors_020.test +5 -0
  313. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters.test +20 -0
  314. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_002.test +19 -0
  315. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_003.test +13 -0
  316. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_004.test +21 -0
  317. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_005.test +22 -0
  318. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/filters_006.test +23 -0
  319. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/insertflags.test +17 -0
  320. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/interpolation.test +36 -0
  321. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/interpolation_in_html_attrs.test +17 -0
  322. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiline.test +18 -0
  323. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiline_code.test +59 -0
  324. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/multiple_attr_kinds.test +47 -0
  325. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/non_rendered_comment.test +31 -0
  326. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ns.test +11 -0
  327. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref.test +22 -0
  328. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref_error1.test +5 -0
  329. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/object_ref_error2.test +5 -0
  330. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/quotes_in_haml.test +10 -0
  331. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby19_attrs.test +11 -0
  332. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma.test +23 -0
  333. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_001.test +5 -0
  334. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_002.test +5 -0
  335. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/ruby_attrs_comma_errors_003.test +5 -0
  336. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/standard.test +114 -0
  337. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/parser/tagflags.test +39 -0
  338. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/runtime/php_filters.test +28 -0
  339. data/vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/runtime/twig_filters.test +31 -0
  340. data/vendor/mthaml/mthaml/test/bootstrap.php +3 -0
  341. metadata +398 -0
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ # Use this file if you cannot use class autoloading. It will include all the
4
+ # files needed for the MarkdownExtra parser.
5
+ #
6
+ # Take a look at the PSR-0-compatible class autoloading implementation
7
+ # in the Readme.php file if you want a simple autoloader setup.
8
+
9
+ require_once dirname(__FILE__) . '/MarkdownInterface.php';
10
+ require_once dirname(__FILE__) . '/Markdown.php';
11
+ require_once dirname(__FILE__) . '/MarkdownExtra.php';
@@ -0,0 +1,38 @@
1
+ <?php
2
+ #
3
+ # Markdown Extra - A text-to-HTML conversion tool for web writers
4
+ #
5
+ # PHP Markdown Extra
6
+ # Copyright (c) 2004-2014 Michel Fortin
7
+ # <http://michelf.com/projects/php-markdown/>
8
+ #
9
+ # Original Markdown
10
+ # Copyright (c) 2004-2006 John Gruber
11
+ # <http://daringfireball.net/projects/markdown/>
12
+ #
13
+ namespace Michelf;
14
+
15
+
16
+ # Just force Michelf/Markdown.php to load. This is needed to load
17
+ # the temporary implementation class. See below for details.
18
+ \Michelf\Markdown::MARKDOWNLIB_VERSION;
19
+
20
+ #
21
+ # Markdown Extra Parser Class
22
+ #
23
+ # Note: Currently the implementation resides in the temporary class
24
+ # \Michelf\MarkdownExtra_TmpImpl (in the same file as \Michelf\Markdown).
25
+ # This makes it easier to propagate the changes between the three different
26
+ # packaging styles of PHP Markdown. Once this issue is resolved, the
27
+ # _MarkdownExtra_TmpImpl will disappear and this one will contain the code.
28
+ #
29
+
30
+ class MarkdownExtra extends \Michelf\_MarkdownExtra_TmpImpl {
31
+
32
+ ### Parser Implementation ###
33
+
34
+ # Temporarily, the implemenation is in the _MarkdownExtra_TmpImpl class.
35
+ # See note above.
36
+
37
+ }
38
+
@@ -0,0 +1,9 @@
1
+ <?php
2
+
3
+ # Use this file if you cannot use class autoloading. It will include all the
4
+ # files needed for the MarkdownInterface interface.
5
+ #
6
+ # Take a look at the PSR-0-compatible class autoloading implementation
7
+ # in the Readme.php file if you want a simple autoloader setup.
8
+
9
+ require_once dirname(__FILE__) . '/MarkdownInterface.php';
@@ -0,0 +1,37 @@
1
+ <?php
2
+ #
3
+ # Markdown - A text-to-HTML conversion tool for web writers
4
+ #
5
+ # PHP Markdown
6
+ # Copyright (c) 2004-2014 Michel Fortin
7
+ # <http://michelf.com/projects/php-markdown/>
8
+ #
9
+ # Original Markdown
10
+ # Copyright (c) 2004-2006 John Gruber
11
+ # <http://daringfireball.net/projects/markdown/>
12
+ #
13
+ namespace Michelf;
14
+
15
+
16
+ #
17
+ # Markdown Parser Interface
18
+ #
19
+
20
+ interface MarkdownInterface {
21
+
22
+ #
23
+ # Initialize the parser and return the result of its transform method.
24
+ # This will work fine for derived classes too.
25
+ #
26
+ public static function defaultTransform($text);
27
+
28
+ #
29
+ # Main function. Performs some preprocessing on the input text
30
+ # and pass it through the document gamut.
31
+ #
32
+ public function transform($text);
33
+
34
+ }
35
+
36
+
37
+ ?>
@@ -0,0 +1,305 @@
1
+ PHP Markdown
2
+ ============
3
+
4
+ PHP Markdown Lib 1.4.1 - 4 May 2013
5
+
6
+ by Michel Fortin
7
+ <http://michelf.ca/>
8
+
9
+ based on Markdown by John Gruber
10
+ <http://daringfireball.net/>
11
+
12
+
13
+ Introduction
14
+ ------------
15
+
16
+ This is a library package that includes the PHP Markdown parser and its
17
+ sibling PHP Markdown Extra with additional features.
18
+
19
+ Markdown is a text-to-HTML conversion tool for web writers. Markdown
20
+ allows you to write using an easy-to-read, easy-to-write plain text
21
+ format, then convert it to structurally valid XHTML (or HTML).
22
+
23
+ "Markdown" is actually two things: a plain text markup syntax, and a
24
+ software tool, originally written in Perl, that converts the plain text
25
+ markup to HTML. PHP Markdown is a port to PHP of the original Markdown
26
+ program by John Gruber.
27
+
28
+ * [Full documentation of the Markdown syntax](<http://daringfireball.net/projects/markdown/>)
29
+ - Daring Fireball (John Gruber)
30
+ * [Markdown Extra syntax additions](<http://michelf.ca/projects/php-markdown/extra/>)
31
+ - Michel Fortin
32
+
33
+
34
+ Requirement
35
+ -----------
36
+
37
+ This library package requires PHP 5.3 or later.
38
+
39
+ Note: The older plugin/library hybrid package for PHP Markdown and
40
+ PHP Markdown Extra is still maintained and will work with PHP 4.0.5 and later.
41
+
42
+ Before PHP 5.3.7, pcre.backtrack_limit defaults to 100 000, which is too small
43
+ in many situations. You might need to set it to higher values. Later PHP
44
+ releases defaults to 1 000 000, which is usually fine.
45
+
46
+
47
+ Usage
48
+ -----
49
+
50
+ This library package is meant to be used with class autoloading. For autoloading
51
+ to work, your project needs have setup a PSR-0-compatible autoloader. See the
52
+ included Readme.php file for a minimal autoloader setup. (If you cannot use
53
+ autoloading, see below.)
54
+
55
+ With class autoloading in place, putting the 'Michelf' folder in your
56
+ include path should be enough for this to work:
57
+
58
+ use \Michelf\Markdown;
59
+ $my_html = Markdown::defaultTransform($my_text);
60
+
61
+ Markdown Extra syntax is also available the same way:
62
+
63
+ use \Michelf\MarkdownExtra;
64
+ $my_html = MarkdownExtra::defaultTransform($my_text);
65
+
66
+ If you wish to use PHP Markdown with another text filter function
67
+ built to parse HTML, you should filter the text *after* the `transform`
68
+ function call. This is an example with [PHP SmartyPants][psp]:
69
+
70
+ use \Michelf\Markdown, \Michelf\SmartyPants;
71
+ $my_html = Markdown::defaultTransform($my_text);
72
+ $my_html = SmartyPants::defaultTransform($my_html);
73
+
74
+ All these examples are using the static `defaultTransform` static function
75
+ found inside the parser class. If you want to customize the parser
76
+ configuration, you can also instantiate it directly and change some
77
+ configuration variables:
78
+
79
+ use \Michelf\MarkdownExtra;
80
+ $parser = new MarkdownExtra;
81
+ $parser->fn_id_prefix = "post22-";
82
+ $my_html = $parser->transform($my_text);
83
+
84
+ To learn more, see the full list of [configuration variables].
85
+
86
+ [configuration variables]: http://michelf.ca/projects/php-markdown/configuration/
87
+
88
+
89
+ ### Usage without an autoloader
90
+
91
+ If you cannot use class autoloading, you can still use `include` or `require`
92
+ to access the parser. To load the `\Michelf\Markdown` parser, do it this way:
93
+
94
+ require_once 'Michelf/Markdown.inc.php';
95
+
96
+ Or, if you need the `\Michelf\MarkdownExtra` parser:
97
+
98
+ require_once 'Michelf/MarkdownExtra.inc.php';
99
+
100
+ While the plain `.php` files depend on autoloading to work correctly, using the
101
+ `.inc.php` files instead will eagerly load the dependencies that would be
102
+ loaded on demand if you were using autoloading.
103
+
104
+
105
+ Public API and Versioning Policy
106
+ ---------------------------------
107
+
108
+ Version numbers are of the form *major*.*minor*.*patch*.
109
+
110
+ The public API of PHP Markdown consist of the two parser classes `Markdown`
111
+ and `MarkdownExtra`, their constructors, the `transform` and `defaultTransform`
112
+ functions and their configuration variables. The public API is stable for
113
+ a given major version number. It might get additions when the minor version
114
+ number increments.
115
+
116
+ **Protected members are not considered public API.** This is unconventional
117
+ and deserves an explanation. Incrementing the major version number every time
118
+ the underlying implementation of something changes is going to give
119
+ nonessential version numbers for the vast majority of people who just use the
120
+ parser. Protected members are meant to create parser subclasses that behave in
121
+ different ways. Very few people create parser subclasses. I don't want to
122
+ discourage it by making everything private, but at the same time I can't
123
+ guarantee any stable hook between versions if you use protected members.
124
+
125
+ **Syntax changes** will increment the minor number for new features, and the
126
+ patch number for small corrections. A *new feature* is something that needs a
127
+ change in the syntax documentation. Note that since PHP Markdown Lib includes
128
+ two parsers, a syntax change for either of them will increment the minor
129
+ number. Also note that there is nothing perfectly backward-compatible with the
130
+ Markdown syntax: all inputs are always valid, so new features always replace
131
+ something that was previously legal, although generally nonsensical to do.
132
+
133
+
134
+ Bugs
135
+ ----
136
+
137
+ To file bug reports please send email to:
138
+ <michel.fortin@michelf.ca>
139
+
140
+ Please include with your report: (1) the example input; (2) the output you
141
+ expected; (3) the output PHP Markdown actually produced.
142
+
143
+ If you have a problem where Markdown gives you an empty result, first check
144
+ that the backtrack limit is not too low by running `php --info | grep pcre`.
145
+ See Installation and Requirement above for details.
146
+
147
+
148
+ Development and Testing
149
+ -----------------------
150
+
151
+ Pull requests for fixing bugs are welcome. Proposed new features are
152
+ going meticulously reviewed -- taking into account backward compatibility,
153
+ potential side effects, and future extensibility -- before deciding on
154
+ acceptance or rejection.
155
+
156
+ If you make a pull request that includes changes to the parser please add
157
+ tests for what is being changed to [MDTest][] and make a pull request there
158
+ too.
159
+
160
+ [MDTest]: https://github.com/michelf/mdtest/
161
+
162
+
163
+ Donations
164
+ ---------
165
+
166
+ If you wish to make a donation that will help me devote more time to
167
+ PHP Markdown, please visit [michelf.ca/donate] or send Bitcoin to
168
+ [1HiuX34czvVPPdhXbUAsAu7pZcesniDCGH].
169
+
170
+ [michelf.ca/donate]: https://michelf.ca/donate/#!Thanks%20for%20PHP%20Markdown
171
+ [1HiuX34czvVPPdhXbUAsAu7pZcesniDCGH]: bitcoin:1HiuX34czvVPPdhXbUAsAu7pZcesniDCGH
172
+
173
+
174
+ Version History
175
+ ---------------
176
+
177
+ PHP Markdown Lib 1.4.1 (4 May 2014)
178
+
179
+ * The HTML block parser will now treat `<figure>` as a block-level element
180
+ (as it should) and no longer wrap it in `<p>` or parse it's content with
181
+ the as Markdown syntax (although with Extra you can use `markdown="1"`
182
+ if you wish to use the Markdown syntax inside it).
183
+
184
+ * The content of `<style>` elements will now be left alone, its content
185
+ won't be interpreted as Markdown.
186
+
187
+ * Corrected an bug where some inline links with spaces in them would not
188
+ work even when surounded with angle brackets:
189
+
190
+ [link](<s p a c e s>)
191
+
192
+ * Fixed an issue where email addresses with quotes in them would not always
193
+ have the quotes escaped in the link attribute, causing broken links (and
194
+ invalid HTML).
195
+
196
+ * Fixed the case were a link definition following a footnote definition would
197
+ be swallowed by the footnote unless it was separated by a blank line.
198
+
199
+
200
+ PHP Markdown Lib 1.4.0 (29 Nov 2013)
201
+
202
+ * Added support for the `tel:` URL scheme in automatic links.
203
+
204
+ <tel:+1-111-111-1111>
205
+
206
+ It gets converted to this (note the `tel:` prefix becomes invisible):
207
+
208
+ <a href="tel:+1-111-111-1111">+1-111-111-1111</a>
209
+
210
+ * Added backtick fenced code blocks to MarkdownExtra, originally from
211
+ Github-Flavored Markdown.
212
+
213
+ * Added an interface called MarkdownInterface implemented by both
214
+ the Markdown and MarkdownExtra parsers. You can use the interface if
215
+ you want to create a mockup parser object for unit testing.
216
+
217
+ * For those of you who cannot use class autoloading, you can now
218
+ include `Michelf/Markdown.inc.php` or `Michelf/MarkdownExtra.inc.php` (note
219
+ the `.inc.php` extension) to automatically include other files required
220
+ by the parser.
221
+
222
+
223
+ PHP Markdown Lib 1.3 (11 Apr 2013)
224
+
225
+ This is the first release of PHP Markdown Lib. This package requires PHP
226
+ version 5.3 or later and is designed to work with PSR-0 autoloading and,
227
+ optionally with Composer. Here is a list of the changes since
228
+ PHP Markdown Extra 1.2.6:
229
+
230
+ * Plugin interface for WordPress and other systems is no longer present in
231
+ the Lib package. The classic package is still available if you need it:
232
+ <http://michelf.ca/projects/php-markdown/classic/>
233
+
234
+ * Added `public` and `protected` protection attributes, plus a section about
235
+ what is "public API" and what isn't in the Readme file.
236
+
237
+ * Changed HTML output for footnotes: now instead of adding `rel` and `rev`
238
+ attributes, footnotes links have the class name `footnote-ref` and
239
+ backlinks `footnote-backref`.
240
+
241
+ * Fixed some regular expressions to make PCRE not shout warnings about POSIX
242
+ collation classes (dependent on your version of PCRE).
243
+
244
+ * Added optional class and id attributes to images and links using the same
245
+ syntax as for headers:
246
+
247
+ [link](url){#id .class}
248
+ ![img](url){#id .class}
249
+
250
+ It work too for reference-style links and images. In this case you need
251
+ to put those attributes at the reference definition:
252
+
253
+ [link][linkref] or [linkref]
254
+ ![img][linkref]
255
+
256
+ [linkref]: url "optional title" {#id .class}
257
+
258
+ * Fixed a PHP notice message triggered when some table column separator
259
+ markers are missing on the separator line below column headers.
260
+
261
+ * Fixed a small mistake that could cause the parser to retain an invalid
262
+ state related to parsing links across multiple runs. This was never
263
+ observed (that I know of), but it's still worth fixing.
264
+
265
+
266
+ Copyright and License
267
+ ---------------------
268
+
269
+ PHP Markdown Lib
270
+ Copyright (c) 2004-2014 Michel Fortin
271
+ <http://michelf.ca/>
272
+ All rights reserved.
273
+
274
+ Based on Markdown
275
+ Copyright (c) 2003-2005 John Gruber
276
+ <http://daringfireball.net/>
277
+ All rights reserved.
278
+
279
+ Redistribution and use in source and binary forms, with or without
280
+ modification, are permitted provided that the following conditions are
281
+ met:
282
+
283
+ * Redistributions of source code must retain the above copyright
284
+ notice, this list of conditions and the following disclaimer.
285
+
286
+ * Redistributions in binary form must reproduce the above copyright
287
+ notice, this list of conditions and the following disclaimer in the
288
+ documentation and/or other materials provided with the
289
+ distribution.
290
+
291
+ * Neither the name "Markdown" nor the names of its contributors may
292
+ be used to endorse or promote products derived from this software
293
+ without specific prior written permission.
294
+
295
+ This software is provided by the copyright holders and contributors "as
296
+ is" and any express or implied warranties, including, but not limited
297
+ to, the implied warranties of merchantability and fitness for a
298
+ particular purpose are disclaimed. In no event shall the copyright owner
299
+ or contributors be liable for any direct, indirect, incidental, special,
300
+ exemplary, or consequential damages (including, but not limited to,
301
+ procurement of substitute goods or services; loss of use, data, or
302
+ profits; or business interruption) however caused and on any theory of
303
+ liability, whether in contract, strict liability, or tort (including
304
+ negligence or otherwise) arising in any way out of the use of this
305
+ software, even if advised of the possibility of such damage.
@@ -0,0 +1,31 @@
1
+ <?php
2
+
3
+ # This file passes the content of the Readme.md file in the same directory
4
+ # through the Markdown filter. You can adapt this sample code in any way
5
+ # you like.
6
+
7
+ # Install PSR-0-compatible class autoloader
8
+ spl_autoload_register(function($class){
9
+ require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
10
+ });
11
+
12
+ # Get Markdown class
13
+ use \Michelf\Markdown;
14
+
15
+ # Read file and pass content through the Markdown parser
16
+ $text = file_get_contents('Readme.md');
17
+ $html = Markdown::defaultTransform($text);
18
+
19
+ ?>
20
+ <!DOCTYPE html>
21
+ <html>
22
+ <head>
23
+ <title>PHP Markdown Lib - Readme</title>
24
+ </head>
25
+ <body>
26
+ <?php
27
+ # Put HTML content in the document
28
+ echo $html;
29
+ ?>
30
+ </body>
31
+ </html>
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "michelf/php-markdown",
3
+ "type": "library",
4
+ "description": "PHP Markdown",
5
+ "homepage": "http://michelf.ca/projects/php-markdown/",
6
+ "keywords": ["markdown"],
7
+ "license": "BSD-3-Clause",
8
+ "authors": [
9
+ {
10
+ "name": "Michel Fortin",
11
+ "email": "michel.fortin@michelf.ca",
12
+ "homepage": "http://michelf.ca/",
13
+ "role": "Developer"
14
+ },
15
+ {
16
+ "name": "John Gruber",
17
+ "homepage": "http://daringfireball.net/"
18
+ }
19
+ ],
20
+ "require": {
21
+ "php": ">=5.3.0"
22
+ },
23
+ "autoload": {
24
+ "psr-0": { "Michelf": "" }
25
+ },
26
+ "extra": {
27
+ "branch-alias": {
28
+ "dev-lib": "1.4.x-dev"
29
+ }
30
+ }
31
+ }