【问题标题】:How to export URLs in org-mode to ascii without brackets如何将 org 模式下的 URL 导出为不带括号的 ascii
【发布时间】:2012-07-25 10:54:10
【问题描述】:

当我写作时

$ 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 模式 (emacs) 为 GIT 项目编写我的自述文件并将它们导出为 ascii。 这样会很好,因为格式很漂亮,而且ReadMe.txt文件的内容会自动显示在github和bitbucket上。

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

【问题讨论】:

    标签: git url export ascii org-mode


    【解决方案1】:

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

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

    链接不会被解释。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多