如何在没有括号的情况下将org-mode中的URL导出到ascii

时间:2012-07-25 10:54:11

标签: git url export ascii org-mode

写作时

$ git clone https://https://username@bitbucket.org/username/reponame.git

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

$ git clone [https://https://username@bitbucket.org/username/reponame.git]

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

我想在org-mode(emacs)中为GIT项目编写我的ReadMe文件,并将它们导出到ascii。 这将非常好,因为格式很漂亮,ReadMe.txt文件的内容会自动显示在github和bitbucket上。

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

1 个答案:

答案 0 :(得分:3)

我建议将这些命令标记为文字示例,要么封闭在#+begin_example#+end_example之间,要么用冒号作为单行前缀:

This is an example command:
: $ git clone https://username@bitbucket.org/username/reponame.git

不会解释链接。