aboutsummaryrefslogtreecommitdiffstats
path: root/docs/extensions/attr_list.md
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-03-07 09:35:40 -0500
committerWaylan Limberg <waylan@gmail.com>2012-03-07 09:35:40 -0500
commitec46692cf5c4d5e22950bc8e7d14cb0ec327fb87 (patch)
tree9c1b9c5025948204e415a21938469bf50bbae754 /docs/extensions/attr_list.md
parent9fd4a5f1600c96406ad0fb86b1a8287d525972ac (diff)
downloadmarkdown-ec46692cf5c4d5e22950bc8e7d14cb0ec327fb87.tar.gz
markdown-ec46692cf5c4d5e22950bc8e7d14cb0ec327fb87.tar.bz2
markdown-ec46692cf5c4d5e22950bc8e7d14cb0ec327fb87.zip
Rename docs/*.md => docs/*.txt
The documentation uses features of Python-Markdown that are not supported on GitHub and it's better to get a source view of the docs anyway. For example, that way comments and bug reports can reference a specific line of a file. Of course, it makes sense for Github to render the README, so that is left with the `.md` file extension.
Diffstat (limited to 'docs/extensions/attr_list.md')
-rw-r--r--docs/extensions/attr_list.md80
1 files changed, 0 insertions, 80 deletions
diff --git a/docs/extensions/attr_list.md b/docs/extensions/attr_list.md
deleted file mode 100644
index 11c6a28..0000000
--- a/docs/extensions/attr_list.md
+++ /dev/null
@@ -1,80 +0,0 @@
-title: Attribute List Extension
-prev_title: Abbreviation Extension
-prev_url: abbreviations.html
-next_title: Definition List Extension
-next_url: definition_lists.html
-
-Attribute Lists
-===============
-
-Summary
--------
-
-An extension to Python-Markdown that adds a syntax to define attributes on
-the various HTML elements in markdown's output.
-
-This extension is included in the standard Markdown library.
-
-Syntax
-------
-
-The basic syntax was inspired by [Maruku][]'s Attribute List feature.
-
-[Maruku]: http://maruku.rubyforge.org/proposal.html#attribute_lists
-
-### The List ###
-
-An example attribute list might look like this:
-
- {: #someid .someclass somekey='some values' }
-
-A word which starts with a hash `#` will set the id of an element.
-
-A word which starts with a dot `.` will add to the list of classes assigned to
-an element.
-
-A key/value pair will assign that pair to the element.
-
-Be aware that while the dot syntax will add to a class, using key/value pairs
-will always override the previously defined attribute. Consider the following:
-
- {: #id1 .class1 id=id2 class="class2 class3" .class4 }
-
-The above example would result in the following attributes being defined:
-
- id="id2 class="class2 class3 class4"
-
-### Block Level ###
-
-To define attributes for a block level element, the attribute list should
-be defined on the last line of the block by itself.
-
- This is a paragraph.
- {: #an_id .a_class }
-
-The above results in the following output:
-
- <p id="an_id" class="a_class">This is a paragraph.</p>
-
-The one exception is headers, as they are only ever allowed on one line.
-
- A setext style header {: #setext}
- =================================
-
- ### A hash style header ### {: #hash }
-
-The above results in the following output:
-
- <h1 id="setext">A setext style header</h1>
- <h3 id="hash">A hash style header</h3>
-
-### Inline ###
-
-To define attributes on inline elements, the attribute list should be defined
-immediately after the inline element with no whitespace.
-
- [link](http://example.com){: class="foo bar" title="Some title! }
-
-The above results in the following output:
-
- <p><a href="http://example.com" class="foo bar" title="Some title!">link</a></p>