Creating custom HTML with asciidoctor

后端 未结 2 965
南笙
南笙 2021-01-20 01:30

I\'m using a CMS to publish my blog articles. I\'m looking for a way to create HTML articles offline from a simple text file. This is a piece of HTML which I normally use fo

相关标签:
2条回答
  • 2021-01-20 02:19

    To answer the question, yes it's possible. However, for something trivial like this the output from asciidoctor ootb along with the highlighter of choice may work fine for what you're doing.

    Should you need to customize things you'll need to creat a custom backend. As the docs for creating a custom backend haven't been finished yet this mailing list post should help.

    0 讨论(0)
  • 2021-01-20 02:25

    In addition to LightGuard's advanced answer it's worth mentioning that you can use ++++ to add custom HTML to the output.

    ++++<h1>hello</h1>++++
    

    will simply generate

    <h1>hello</h1>
    
    0 讨论(0)
提交回复
热议问题