Closed Liu233w closed 8 years ago
URI 里面的问号是有特殊意义的,这点可见 https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
这时需要在 org 文件里用 #+URI 重新设定路径格式
不过 :title 里面的内容不是 string 类型?我这边测试得到的都是 string 类型,这里好像没有问题。
那么为什么不转义一下呢?
其实我的意思是希望ego能自动检测标题里的问号并处理的。。。
我把这个问题修复了,自动在生成URL的时候把?
和#
替换成-
,PR在#84
@kuangdash @lujun9972
(url-encode-url URL)
Return a properly URI-encoded version of URL. This function also performs URI normalization, e.g. converting the scheme to lowercase if it is uppercase. Apart from normalization, if URL is already URI-encoded, this function should return it unchanged.
能不能用它转义?
ego--encode-string-to-url
里面的文档有这一段
"Encode STRING to legal URL. Why we do not use
url-encode-url' to encode the string, is that
url-encode-url' will convert all not allowed characters into encoded ones, like %3E, but we do NOT want this kind of url."
我没看前面的代码,也不知道为什么“do NOT want this kind of url”
例:
#+TITLE: HDU-2054 A == B ?
In buffer messages: