| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
in everyones site-packages. We just need to distrubute them in the tarball for people to run before installing etc.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| | |
shows the differances between the old and the new. Also left one test failing (unsignificant white space only) to demonstrate what a failing test looks like.
|
| |
| |
| |
| | |
Fixes Ticket 39. NOTE: I did not add a seperate extension which only adds this feature - it is only available as part of 'extra'.
|
| |
| |
| |
| | |
treatment if raw <div>s with multiple line breaks - they no longer automagicly process their content as markdown. This matches other implementations. Finished rest of code for use by an extension - to be added later.
|
| |
| |
| |
| |
| |
| | |
now - allowing various arbitrary stuff (like x/html to be included without breaking the rawhtml parser.
Although currently unused, the code also provides the parsed attributes as a dict. Should be useful for adding support for parsing markdown text within rawhtml in an extension.
|
| |
| |
| |
| | |
inside raw <pre> tags.
|
| |
| |
| |
| | |
fixed.
|
| |
| |
| |
| | |
wrapped in punctuation without spaces and still will be converted to emphasis (ie: '[_foo_]'). Test included. Thanks for the report seanh.
|
| |
| |
| |
| | |
contents. Specificly, when stepping back multiple levels, the nestsed listed now follow suite. Test included. Thanks for the patch Jack Miller.
|
|/
|
|
| |
asterisk. Adjusted regex to eat all (one or more) of the spaces. While it may seem wrong (at least in the loose list case), this is how all other implementations work. And it solves a number of edge cases otherwise not accounted for in the list parser.
|
|
|
|
| |
30 and other related issues. Note that I went with php's behavior rather than perl's when we have have three (ie.: *** or ___) without a closing three.
|
|
|
|
| |
default, added a config which accepts a callable to replace the default. Updated tests and docs.
|
|
|
|
| |
any headers (h1-6) as this crashes markdown with an infinite loop trying to build the toc. Thanks for the report Holger Rapp.
|
|
|
|
| |
tables extension test.
|
|
|
|
| |
syntax and is implemented as a blockprocessor. Currently, Markdown doesn't see table elements as block elements, so it doesn't get prettified.
|
|
|
|
| |
major refactor, but it at least works as documented.
|
| |
|
|
|
|
|
|
|
|
| |
and HTML 4.
Thanks to Eric Abrahamsen for doing the legwork and providing an initial
working patch. And thanks to Fredrik Lundh for allowing us to include his
html4 serializer from the ElementTree 1.3 preview.
|
|
|
|
| |
blockquote.
|
|
|
|
| |
Apparently differant versions of ElementTree encode line breaks in attributes differantly. Therefore, we just remove any such linebreaks as they are insignificant anyway.
|
| |
|
| |
|
|
|
|
| |
test. Somehow we never had a test for that before. Also reset markdown.py to be executable again.
|
|
|
|
| |
which had a few insignificant differances in whitespace.
|
|
|
|
| |
starts after the first line. Also updated coresponding test as it had an error and added more detail. All core tests pass now. On to extensions.
|
|
|
|
| |
php output of lists. Only one test failing from core parser refactor now.
|
| |
|
|
|
|
| |
tests corrected.
|
|
|
|
| |
updated a few tests that weren't quite right - that is they now better match pl or php implementations.
|
| |
|
|
|
|
| |
extension modifies the core, we should test that all core parseing still works properly. Thanks for the report John Szakmeister.
|
|
|
|
| |
when appropriate.
|
|
|
|
| |
first def. Includes tests. That was easier than expected.
|
|
|
|
| |
features in PHP's implementation don't work yet. Most notably a blank line between a term and its first definition will break things. See the included test for what works.
|
|
|
|
| |
consecutively numbered) footnote markers.
|
| |
|
| |
|
| |
|
|
|
|
| |
(I can't get it to work, though.)
|
| |
|
| |
|
|
|
|
| |
/>' tags with a linebreak. Also fixed a minor bug were the '<br />' tags contained 2 spaces instead of one before the slash (i.e. '<br />'). Note that by moving to a Postprocessor, anyone can override with their own code which does what they want (i.e. add indentation) with the extension api.
|
|
|
|
| |
and it better matches other markdown implementations. Also updated tests.
|
|
|
|
| |
than parent_elem.text as text will alway be at beginning of doc. The wrapping element is a <p> tag as, later, when the rawhtml is inserted, markdown will first check for the placeholder inside a <p> tag, and if the placeholder is the *only* content of the <p> tag, replace the entire <p> tag - not just the placeholder. Perhaps a little hacky, but this is how markdown works internally anyway.
|
| |
|
|
|
|
|
|
|
|
|
| |
whitespace is preserved in codeblocks.
As a side-benefit, this also solved the issue with the safe-mode tests failing.
All tests incorectly altered at ElementTree conversion have been corrected for
this bug. Any remaining tests that fail are unrelated to this.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tags.
Also edited numerious tests that were expecting wrong output - they now expect
correct output. Note that a few **still fail** because the output before moving
to ELementTree wasn't correct either. So I set the expected output to what I
think it should be so we don't forget about it later.
I should also note that the 'safe-mode' tests are failing. However, I believe
the current expected output is correct as it is valid html. Interestingly,
these tests passed prior to this fix. We'll need to special case safe-mode here.
|