Commit graph

44 commits

Author SHA1 Message Date
bocharsky-bw 972faeb8cf Get rid of property types for now 2022-01-25 19:02:38 +02:00
bocharsky-bw b9e547fb67 Revert removing Sundown 2022-01-25 18:32:36 +02:00
Tac Tacelosky 823f0d8d89 should not return a result in a constructor 2021-11-30 07:49:20 -05:00
Tac Tacelosky 9de7a9f400 update test methods to parent signatures 2021-11-30 07:32:02 -05:00
Tac Tacelosky 7afd756126 merge dev-tac 2021-11-14 20:41:44 -05:00
Tac Tacelosky 90ff78064e update phpunit 2021-11-14 20:39:23 -05:00
Tac Tacelosky fadc9120b8 remove sundown 2021-11-08 06:32:20 -05:00
Tac Tacelosky eb31781090 remove deprecations 2021-11-05 12:50:12 -04:00
Ryan Weaver bb19335618 Merge pull request #82 from lunetics/master
Pull in changes from \Michelf\MarkdownExtra
2016-04-27 19:40:49 -05:00
Matthias Breddin 48f1ed6e5b Pull in changes from \Michelf\MarkdownExtra
This line is missing in the the overwritten doAnchors() method, preventing using extra id / class attributes [text](link)(#id .class)
2016-01-08 04:20:19 +01:00
Ryan Weaver c5f5046c8e Removing MarkdownTwigExtension dependency to MarkdownHelper
This allows the Twig extension to be used without the templating component.
This also introduces a new integration test as a sanity check that all the
configuration / compiler pass was setup correctly.
2015-12-15 16:08:41 -05:00
Christian Raue b1f3bc4ca1 fix the no_html option 2015-08-20 09:02:23 +02:00
Andrew Kovalyov bd9170ee10 Fix default configuration 2015-05-05 12:39:37 +02:00
Andrew Kovalyov 8423632a15 Fixed invalid logic of configuration which lead to double-escaping of html entities 2015-05-05 12:35:47 +02:00
Lars Vierbergen 8b30483894 Use no_html option on the parser itself
Just escaping the text before feeding it into the parser messes up
markdown quote blocks, since markdown uses > for quoting, and escaping
that turns it into >, which does not get parsed correctly.
2014-08-29 12:37:05 +02:00
Christophe Coevoet 7f115dc73f Reverted the interface renaming done in #50
All code in the bundle is still relying on the transformMarkdown method in
parsers, not on the transform method.
Normal parsers are still working because they still have the method, and
PHP does not have strict type checking for typehints.
However, the SundownParser was still broken. #51 renamed the method to
avoid a fatal error for the interface, but then the method used by the
bundle became missing.
2014-02-20 11:34:05 +01:00
Elnur Abdurrakhimov 7f561e2b17 Make the Sundown parser implement the renamed method from the parser interface 2014-02-16 17:04:56 +04:00
Alex Demchenko 66e891bf0d Merge pull request #50 from iammichiel/master
Migration to MichelFortin's implementation.
2014-02-15 00:23:44 +02:00
Michiel Missotten a9bca9ffc6 Removing overriden method for fencedCodeBlocks.
Michel Fortin's implementation is able to handle the fencedCodeBlock without any escaping mecanism.
2014-02-14 10:06:15 +01:00
Michiel Missotten 7c05b45fae Migration to MichelFortin's implementation.
Since flydev has marked his version as deprecated (it was a simple composer port of Michel Fortin's initial project), it seems good to revert the dependency to the stable/continued project.
2014-02-13 16:52:14 +01:00
tamirvs e7982185e5 Added default option to Light and Medium parsers 2013-12-16 17:48:58 +02:00
tamirvs 9d3a2ac712 Added images option to features list 2013-12-16 17:38:02 +02:00
Joseph Bielawski bd597e66a1 Fix way how Sundown parser is added
Fix detection of default parser when none is set
Add Flavored preset from KnpBundles.com
2012-10-17 12:01:25 +02:00
Joseph Bielawski 3c541b580b Removed hard dependency on MarkdownParser code, now uses dflydev/markdown library
Refactored way how parsers are initialized, and allow to select parser while rendering
Interface `MarkdownParserInterface` method name was changed from `#transform($text)` to `#transformMarkdown($text)`
2012-10-15 17:28:35 +02:00
Joseph Bielawski 7c088d3094 Merge pull request #30 from cordoval/feature/addSundownSupport
add sundown support
2012-10-13 07:13:49 -07:00
Luis Cordova 9c953ce3d7 address comments 2012-10-12 14:30:11 -05:00
Luis Cordova 3a5df3e04d add support for sundown extension
move configuration and create userland sundown parser
fix namespace typo and wip
add configuration for extensions and render flags for sundown
turn scalar into boolean nodes
add usage of defaultTrue and defaultFalse
using two arraynode for sundown and 2 children for extensions and render flags
feed configurations for extensions and render flags into DIC parameters
add ext-sundown on suggests
refactoring configuration
fix config and remove dots from parameters
wip
wip
try some approach with stof's help
wip
working but not changing when setting different default
last touches
set all configuration booleans default to false
fix indentation of addDefaultsIfNotSet
some love to travis, phpunit and vendor scripts
mark tests as incomplete because the test tests special configuration of the underlaying library wrapped
test against v2.0.5
silly typo defaultFales
remove composer.lock
update php version on composer.json
add changes as per comments
removing v from versions in travis
address comments
Fix no_html feature
switching 2.2.* to dev-master
remove 2.2.* stuff symfony frameworkbundle is not that far yet
update readme and support config dump
wip
2012-10-11 20:44:30 -05:00
Kevin Bernard-Allies 8ad7ddee42 support Markdown Extra 2012-05-28 04:08:50 +02:00
Kevin Bernard-Allies 0482f47324 disable no_html by default 2012-05-28 03:39:35 +02:00
Kevin Bernard-Allies 16bbbf7ac8 Add no_html feature 2012-05-27 19:09:50 +02:00
Matthieu Bontemps 6414f6be0a Change Knplabs to Knp. BC break before Symfony2 release. 2011-07-03 11:30:09 +02:00
ornicar e9b96ec938 Merge branch 'master' of git://github.com/knplabs/MarkdownBundle
Conflicts:
	Parser/MarkdownParser.php
2011-04-25 21:03:03 -07:00
ornicar f04bb4a7e6 Modernize the bundle, add parser implementation choice, and improve doc. 2011-04-06 23:35:00 -07:00
Jérôme Tamarelle 9be7f15be0 Don't load MarkdownExtraParser.php if the class MarkdownExtraParser already exists (if included previously to replace the one provided with the bundle) 2011-04-05 00:01:16 +02:00
Matthieu Bontemps 574aaa762e Change namespaces to Vendor\Bundle\BundleName to reflect best practices. 2011-03-12 18:47:26 +01:00
Antoine Hérault aa765dd1dd Add vendor prefix 2011-02-04 15:28:05 +01:00
ornicar 599cf25f23 Improve doc and comments 2010-07-22 12:06:54 +02:00
Thibault Duplessis ff438936a5 Improve performance, allow to choose precisely parser features, more unit and performance tests 2010-05-12 01:25:34 +02:00
ornicar 8191b1e5ea Replace parsers with one unique parser, fix white spaces on new lines 2010-05-06 14:54:35 +02:00
ornicar ed9b57e80e Update coding style 2010-05-06 14:14:50 +02:00
ornicar e1817fb483 Completed refactored light and extra parsers 2010-05-06 12:27:45 +02:00
ornicar 1a2ed38824 Transform php markdown to a php5 lib 2010-05-06 11:58:44 +02:00
ornicar b79e6b91cc Add unit tests for markdown light 2010-05-06 11:47:39 +02:00
ornicar 65920e999e Implement markdown parser 2010-05-05 18:20:58 +02:00