gpt4 book ai didi

filebeat - 在asciidoc中转义 `/**`

转载 作者:行者123 更新时间:2023-12-02 03:46:17 27 4
gpt4 key购买 nike

我的目标

我正在尝试提交对 Filebeat documentation 的修复,写于asciidoc

来源

Currently it is not possible to recursively fetch all files in all subdirectories of a directory. However, the /** pattern can be used to fetch all files from a predefined level of subdirectories. For example, /var/log/**/*.log and /var/log/**/**/*.log fetch all .log files from the subdirectories and sub-subdirectories of /var/log, respectively. Note that neither fetch log files from the /var/log folder itself.

结果

来自asciidoclive.com :

enter image description here

我的问题

输出中的 /** 变为 /,并且其后面的单词无意中以粗体标记。

我的问题

如何在 asciidoc 中正确转义 /**

最佳答案

这很棘手,因为在 Asciidoctor 中转义实际上被破坏了。 :(

我知道两种可能的解决方法:

  • 使用直通:+++\**+++,
  • 或定义星号的属性,例如:star: * 并写入 \{star}{star}

是的,这很糟糕,而且在 Asciidoctor 中不容易修复。最好的选择是基于正确的语法等实现新的 AsciiDoc 解析器,不幸的是,Asciidoctor 在代码质量方面非常状况很差。 :((如果有人愿意赞助这样的项目,请联系我。)

关于filebeat - 在asciidoc中转义 `/**`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46630941/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com