我正在使用asciidoctor-maven-plugin將.adoc文件轉換爲html文件... 想要在生成的html文件中包含指向javascript的鏈接... 基本上想要在即從.adoc文件生成的HTML文件如何在Asciidoc中包含JavaScript?
<script src="custom.js"></script>
嘗試設置一樣,沒有運氣的linkcss scriptsdir etc..but屬性...
任何幫助嗎?
一種方式是像 http://mrhaki.blogspot.ie/2014/06/awesome-asciidoc-include-raw-html.html
但隨後必須將它添加在每個.adoc文件...有沒有得到它自動就如同CSS(使用樣式表)添加一個方法
這? http://asciidoctor.org/docs/install-and-use-asciidoctorjs/ – 2014-10-20 14:13:21
@Diodeus這不是問題的要求。 OP,你試過只是逃避'<>'?看到這裏的信息:http://stackoverflow.com/questions/692123/escape-tags-in-html – blgt 2014-10-20 14:14:50
我編輯了你的問題,使代碼可見。下次不要忘記檢查您要在底部預覽面板中發佈的內容;-) – 2014-10-20 14:15:39