From b4ce140d4e0e9839eb8e95f26165b8584441a5f2 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 31 Jul 2009 01:10:56 -0400 Subject: Fixed a couple typos in previous commit. --- docs/writing_extensions.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/writing_extensions.txt b/docs/writing_extensions.txt index 65ff5b6..3aad74a 100644 --- a/docs/writing_extensions.txt +++ b/docs/writing_extensions.txt @@ -38,7 +38,7 @@ Preprocessors munge the source text before it is passed into the Markdown core. This is an excellent place to clean up bad syntax, extract things the parser may otherwise choke on and perhaps even store it for later retrieval. -Preprocessors should inherit from ``markdown..preprocessors.Preprocessor`` and +Preprocessors should inherit from ``markdown.preprocessors.Preprocessor`` and implement a ``run`` method with one argument ``lines``. The ``run`` method of each Preprocessor will be passed the entire source text as a list of Unicode strings. Each string will contain one line of text. The ``run`` method should @@ -155,7 +155,7 @@ Postprocessors manipulate the document after the ElementTree has been serialized into a string. Postprocessors should be used to work with the text just before output. -A Postprocessor should inherit from ``markdown.porstprocessors.Postprocessor`` +A Postprocessor should inherit from ``markdown.postprocessors.Postprocessor`` and over-ride the ``run`` method which takes one argument ``text`` and returns a Unicode string. -- cgit v1.2.3