summaryrefslogtreecommitdiff
path: root/markdown/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Now using universal code for Python 2 & 3.Waylan Limberg2013-02-271-9/+22
| | | | | | | | | | The most notable changes are the use of unicode_literals and absolute_imports. Actually, absolute_imports was the biggest deal as it gives us relative imports. For the first time extensions import markdown relative to themselves. This allows other packages to embed the markdown lib in a subdir of their project and still be able to use our extensions.
* Simlify importing ElementTreeWaylan Limberg2013-02-261-2/+13
| | | | | | As we no longer support older python versions, importing ElementTree is much simpler. The documented way for extensions to use etree still remains the same.
* Fix all pyflakes unused-import/unused-variable warningsDmitry Shachnev2012-11-091-2/+0
|
* Fixed #151. Raw html matching is now case-insensitive.Waylan Limberg2012-10-211-1/+1
|
* Remove `<ins>` and `<del>` from html block element listfin2012-04-111-1/+1
| | | | They are span elements. `<del>` is explicitly mentioned as such in the [markdown syntax document](http://daringfireball.net/projects/markdown/syntax)
* Fixed #77. util.isBlockLevel() needs to check entire tag passed to it.Waylan Limberg2012-01-301-2/+2
|
* Partial fix of issue #14. hrefs (and titles) are now unescaped, but it ↵Waylan Limberg2011-06-021-0/+1
| | | | uppears that we are loosing escaped backslashes (both in the href and in the link label in the example given in issue 14.
* Added new HTML5 block elements to known block level elementsHorst Gutmann2011-05-221-1/+3
|
* Fixed previous two commits. cElementTree cannot use ElementTree nodes in the ↵Waylan Limberg2010-10-311-4/+1
| | | | tree, but it still uses ElementTree Comment assinged to a node's tag to test for Comment nodes. Also no longer considering Commet nodes to be block level.
* Improved previous commit. isBlockLevel is now more foolproof and will no ↵Waylan Limberg2010-10-291-1/+5
| | | | longer crash on other non-string ElemetTree tags (like processing instructions).
* Fixed Ticket 80. Added support for ElementTree Comments to be included by ↵Waylan Limberg2010-10-291-0/+2
| | | | third party extensions when using cElementTree.
* Moved a bunch of global variables to the instance of the Markdown class.Waylan Limberg2010-07-061-8/+0
|
* Removed Global variable HTML_PLACEHOLDER. Use HtmlStash.get_placeholder(key) ↵Waylan Limberg2010-07-061-3/+3
| | | | if you need it.
* Moved HtmlStash and base Prosessor classes to the new util module.Waylan Limberg2010-07-061-1/+45
|
* Updated commandline script as logging settings are no longer in ↵Waylan Limberg2010-07-061-2/+1
| | | | markdown/__init__.py
* Clean up previous commit a little. renamed misc_logging to md_logging and ↵Waylan Limberg2010-07-061-1/+1
| | | | fixed imports. We import logging levels from logging directly and only import message from md_logging.
* Rename misc.py to util.py at the request of upstreamToshio Kuratomi2010-07-051-0/+73