aboutsummaryrefslogtreecommitdiffstats
path: root/mdx_rss.py
diff options
context:
space:
mode:
Diffstat (limited to 'mdx_rss.py')
-rw-r--r--mdx_rss.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdx_rss.py b/mdx_rss.py
index c15c9a0..2117baf 100644
--- a/mdx_rss.py
+++ b/mdx_rss.py
@@ -92,7 +92,12 @@ class RssPostProcessor (markdown.Postprocessor):
self.ext.getConfig("URL")))
item.appendChild(doc.createElement("title", heading))
- item.appendChild(doc.createElement("guid", heading))
+
+ guid = ''.join([x for x in heading if x.isalnum()])
+
+ guidElem = doc.createElement("guid", guid)
+ guidElem.setAttribute("isPermaLink", "false")
+ item.appendChild(guidElem)
elif child.nodeName in ["p"] :