git - 如何将 org-mode 中的 URL 导出为不带括号的 ascii

标签 git url export ascii org-mode

当我写作时

$ git clone https://https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="31444254435f505c54715358455344525a54451f5e4356" rel="noreferrer noopener nofollow">[email protected]</a>/username/reponame.git

在 org-mode 下然后导出到 ascii (C-c C-e a) 结果是

$ git clone [https://https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f68385938498979b93b6949f829483959d9382d8998491" rel="noreferrer noopener nofollow">[email protected]</a>/username/reponame.git]

因此,自述文件的读者将无法简单地复制并粘贴该行。

我想在 org 模式 (emacs) 下为 GIT 项目编写自述文件并将其导出为 ascii。 这会非常好,因为格式很漂亮,而且 ReadMe.txt 文件的内容会自动显示在 github 和 bitbucket 上。

去掉括号的首选方法是什么?将 org-mode 中的行定义为代码片段?更改 ascii 导出定义?

最佳答案

我建议将这些命令标记为文字示例,或者将其括在 #+begin_example#+end_example 之间,或者为单行添加冒号前缀:

This is an example command:
: $ git clone https://<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="186d6b7d6a7679757d587a716c7a6d7b737d6c36776a7f" rel="noreferrer noopener nofollow">[email protected]</a>/username/reponame.git

链接不会被解释。

关于git - 如何将 org-mode 中的 URL 导出为不带括号的 ascii,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11648136/

相关文章:

git - 添加 Git Bash 别名

http - Safari 移动版和桌面版隐藏了完整的引用 URL : why?

linux - 使用shell脚本将变量导出到linux

java - 一旦以jar/zip格式导出,AudioInputStream无法正常工作

ios - 在考虑 App Store 审核时间的同时遵守 git 流程规则

git - flake8,仅在 diff 和 exclude 上

git - 如何彻底清理 git 工作目录?

web-services - 您应该在 URL 中使用复数形式还是单数形式的文件夹名称

java - 授权用户读取 URL 正文内容时出错

crash - 导出存档时 Xcode 5 崩溃