From 6734c7c896365533898d321b2eae4745c380310e Mon Sep 17 00:00:00 2001 From: Yuri Takhteyev Date: Mon, 19 Mar 2007 01:15:58 +0000 Subject: Fixed a GUID issue. --- mdx_rss.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdx_rss.py') 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"] : -- cgit v1.2.3