【发布时间】:2014-10-20 14:11:32
【问题描述】:
我正在使用 asciidoctor-maven-plugin 将 .adoc 文件转换为 html 文件... 想要在生成的 html 文件中包含指向 javascript 的链接... 基本上希望在从 .adoc 文件生成的 html 文件中看到类似下面的内容
<script src="custom.js"></script>
尝试设置属性,如 linkcss scriptsdir 等。但没有运气...
有什么帮助吗?
一种方式就像在 http://mrhaki.blogspot.ie/2014/06/awesome-asciidoc-include-raw-html.html
但是必须在每个 .adoc 文件中添加它...有没有办法像 CSS 一样自动添加它(使用样式表)
【问题讨论】:
-
@Diodeus 这不是问题要问的。 OP,您是否尝试过逃避
<>?请参阅此处了解信息:stackoverflow.com/questions/692123/escape-tags-in-html -
我已编辑您的问题以使代码可见。下次不要忘记在底部预览面板中检查您要发布的内容;-)
标签: javascript asciidoc