当我写作时
$ 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/