asciidoctor是否有设置要删除< paragraph>和< p>从其输出的源标签? [英] Does asciidoctor have a setting to remove the <paragraph> and <p> tags from the source it outputs?

查看:99
本文介绍了asciidoctor是否有设置要删除< paragraph>和< p>从其输出的源标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用asciidoctor在Drupal中开发自定义过滤器,并意识到asciidoctor将输出放置在< div class = paragraph>< p> 标记中。

I am developing a custom filter in Drupal using asciidoctor and realize that asciidoctor places the output in <div class="paragraph"><p> tags.

是否具有从输出中删除这些标记并仅返回内部HTML的设置?

Does it have a setting to remove those tags from the output and return just the inner HTML?

推荐答案

有一个不同的输出插件 HTML5s 可创建语义HTML使用更少的额外标签。它可以在Ruby和JavaScript环境中使用。

There is a different output plugin HTML5s that creates semantic HTML with fewer extra tags. It works both in Ruby and JavaScript environments.

这篇关于asciidoctor是否有设置要删除&lt; paragraph&gt;和&lt; p&gt;从其输出的源标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆