diff --git a/simple_footnotes/README.md b/simple_footnotes/README.md
new file mode 100644
index 0000000..d4105cc
--- /dev/null
+++ b/simple_footnotes/README.md
@@ -0,0 +1,26 @@
+Simple Footnotes
+================
+
+A Pelican plugin to add footnotes to blog posts.
+
+When writing a post or page, add a footnote like this:
+
+ Here's my written text[ref]and here is a footnote[/ref].
+
+This will appear as, roughly:
+
+Here's my written text1
+
+ 1. and here is a footnote ↩
+
+Inspired by Andrew Nacin's [Simple Footnotes WordPress plugin](http://wordpress.org/plugins/simple-footnotes/).
+
+Requirements
+============
+
+Needs html5lib, so you'll want to `pip install html5lib` before running.
+
+Should work with any content format (ReST, Markdown, whatever), because
+it looks for the `[ref]` and `[/ref]` once the conversion to HTML has happened.
+
+Stuart Langridge, http://www.kryogenix.org/, February 2014.
diff --git a/simple_footnotes/__init__.py b/simple_footnotes/__init__.py
new file mode 100644
index 0000000..2f958a8
--- /dev/null
+++ b/simple_footnotes/__init__.py
@@ -0,0 +1 @@
+from .simple_footnotes import *
diff --git a/simple_footnotes/simple_footnotes.py b/simple_footnotes/simple_footnotes.py
new file mode 100644
index 0000000..ea2e480
--- /dev/null
+++ b/simple_footnotes/simple_footnotes.py
@@ -0,0 +1,91 @@
+from pelican import signals
+import re
+import html5lib
+
+RAW_FOOTNOTE_CONTAINERS = ["code"]
+
+def getText(node, recursive = False):
+ """Get all the text associated with this node.
+ With recursive == True, all text from child nodes is retrieved."""
+ L = ['']
+ for n in node.childNodes:
+ if n.nodeType in (node.TEXT_NODE, node.CDATA_SECTION_NODE):
+ L.append(n.data)
+ else:
+ if not recursive:
+ return None
+ L.append(getText(n) )
+ return ''.join(L)
+
+def parse_for_footnotes(article_generator):
+ for article in article_generator.articles:
+ if "[ref]" in article._content and "[/ref]" in article._content:
+ content = article._content.replace("[ref]", "
this is code[ref]footnote[/ref] end code end",
+ "wordsthis is code[ref]footnote[/ref] end code end")
+
+if __name__ == '__main__':
+ unittest.main()
\ No newline at end of file