forked from mirrors/org-mode
org-rss-headline: Replace bracket links by their descriptions
* contrib/lisp/ox-rss.el (org-rss-headline): Replace bracket links by their descriptions. Thanks to steckerhalter for reporting this.
This commit is contained in:
parent
d91d4bfb47
commit
2836c9cd81
|
@ -240,7 +240,11 @@ communication channel."
|
||||||
(org-time-string-to-time
|
(org-time-string-to-time
|
||||||
(or (org-element-property :PUBDATE headline)
|
(or (org-element-property :PUBDATE headline)
|
||||||
(error "Missing PUBDATE property"))))))
|
(error "Missing PUBDATE property"))))))
|
||||||
(title (org-element-property :raw-value headline))
|
(title (replace-regexp-in-string
|
||||||
|
org-bracket-link-regexp
|
||||||
|
(lambda (m) (or (match-string 3 m)
|
||||||
|
(match-string 1 m)))
|
||||||
|
(org-element-property :raw-value headline)))
|
||||||
(publink
|
(publink
|
||||||
(or (and hl-perm (concat (or hl-home hl-pdir) hl-perm))
|
(or (and hl-perm (concat (or hl-home hl-pdir) hl-perm))
|
||||||
(concat
|
(concat
|
||||||
|
@ -319,8 +323,8 @@ as a communication channel."
|
||||||
(ifile (plist-get info :input-file))
|
(ifile (plist-get info :input-file))
|
||||||
(publink
|
(publink
|
||||||
(concat (file-name-as-directory blogurl)
|
(concat (file-name-as-directory blogurl)
|
||||||
(file-name-nondirectory
|
(file-name-nondirectory
|
||||||
(file-name-sans-extension ifile))
|
(file-name-sans-extension ifile))
|
||||||
"." rssext)))
|
"." rssext)))
|
||||||
(format
|
(format
|
||||||
"\n<title>%s</title>
|
"\n<title>%s</title>
|
||||||
|
|
Loading…
Reference in a new issue