Skip to content

Commit c7ccbd9

Browse files
author
Waylan Limberg
committed
Fixed a few issues with writing_extensions.md.
1 parent b1e818f commit c7ccbd9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

docs/writing_extensions.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ there are also blockprocessors which are part of the core BlockParser.
1515
As the parser builds an [ElementTree][] object which is later rendered
1616
as Unicode text, there are also some helpers provided to ease manipulation of
1717
the tree. Each part of the API is discussed in its respective section below.
18-
Additionaly, reading the source of some [[Available Extensions]] may be helpful.
19-
For example, the [[Footnotes]] extension uses most of the features documented
20-
here.
18+
Additionally, reading the source of some [Available Extensions][] may be
19+
helpful. For example, the [Footnotes][] extension uses most of the features
20+
documented here.
2121

2222
* [Preprocessors][]
2323
* [InlinePatterns][]
@@ -368,13 +368,14 @@ configuration options for your extension and attach the various processors and
368368
patterns to the Markdown instance.
369369

370370
It is important to note that the order of the various processors and patterns
371-
matters. For example, if we replace ``http://...`` links with <a> elements, and
372-
*then* try to deal with inline html, we will end up with a mess. Therefore,
373-
the various types of processors and patterns are stored within an instance of
374-
the Markdown class in [OrderedDict][]s. Your ``Extension`` class will need to
375-
manipulate those OrderedDicts appropriately. You may insert instances of your
376-
processors and patterns into the appropriate location in an OrderedDict, remove
377-
a built-in instance, or replace a built-in instance with your own.
371+
matters. For example, if we replace ``http://...`` links with ``<a>`` elements,
372+
and *then* try to deal with inline html, we will end up with a mess.
373+
Therefore, the various types of processors and patterns are stored within an
374+
instance of the Markdown class in [OrderedDict][]s. Your ``Extension`` class
375+
will need to manipulate those OrderedDicts appropriately. You may insert
376+
instances of your processors and patterns into the appropriate location in an
377+
OrderedDict, remove a built-in instance, or replace a built-in instance with
378+
your own.
378379

379380
<h4 id="extendmarkdown">extendMarkdown</h4>
380381

@@ -514,7 +515,7 @@ To change the location of an existing item:
514515
<h4 id="registerextension">registerExtension</h4>
515516

516517
Some extensions may need to have their state reset between multiple runs of the
517-
Markdown class. For example, consider the following use of the [[Footnotes]]
518+
Markdown class. For example, consider the following use of the [Footnotes][]
518519
extension:
519520

520521
md = markdown.Markdown(extensions=['footnotes'])
@@ -609,3 +610,5 @@ than one residing in a module.
609610
[Config Settings]: #configsettings
610611
[makeExtension]: #makeextension
611612
[ElementTree]: http://effbot.org/zone/element-index.htm
613+
[Available Extensions]: extensions/
614+
[Footnotes]: extensions/footnotes.html

0 commit comments

Comments
 (0)