以下HTML应转换为textile:
**** Ressourcen schonen, weniger drucken - Think before you print! ****
据我所知,这是有效的HTML。
使用pandoc通过
将其转换为Textilepandoc -f html -t textile filename.html
这件作品的输出编码如下:
**** Ressourcen schonen, weniger drucken - Think before you print! ****
这看起来是有效的纺织品,根据some sites愉快地解码它。 Other sites但是,抱怨这是无效的:
Your text appears to contain something that shouldn’t be pasted into our textile form.
此外,Textile格式的输出的pandoc反向转换返回:
**** Ressourcen schonen, weniger drucken - Think before you print! ****
现在&符号本身已被编码,看起来,pandoc看不到它自己生成的输出是有效输入。
有解决方法吗?这真的是有效的纺织品吗?
答案 0 :(得分:0)
是的,它是有效的纺织品;根据{{3}},允许内嵌HTML,并且dingus确认它。
Pandoc在编写纺织品时将*
转换为实体,以确保文字星号不会意外触发重点。
你在pandoc纺织品阅读器中发现了一个错误,它应该将*
解释为字面星号字符。这应该在RedCloth 4 spec上报告。