Prawn html formatting

2019-05-08 10:11发布

I have some simple lists and bold/italic text to format with prawn. How do I get prawn to pay attention to the html tags instead of just displaying them explicitly.

If prawn can't do this, what are my other options?

3条回答
Deceive 欺骗
2楼-- · 2019-05-08 10:15

There was http://github.com/sandal/prawn-format for this, but now it is out of date and not supported.

As of Prawn 0.7, prawn-format is completely unsupported, and will not work with versions of Prawn 0.7+. Feel free to fork and fix, of course.

查看更多
聊天终结者
3楼-- · 2019-05-08 10:22

According to the Prawn changelog:

We had planned to write up the necessary steps for getting prawn-format back into the fold, but instead, we are working on a replacement that will be supported in core. More details to come soon.

You might want to create an issue on their github page to find out the roadmap for this feature.

查看更多
爷的心禁止访问
4楼-- · 2019-05-08 10:38

Inline formatting has been completely re-instated in the development version of Prawn.

You can use the code off of the stable branch (0.9.x) for stability, or track master, where we just merged inline styling support for tables. See notes at:

http://wiki.github.com/sandal/prawn/changelog-dev

查看更多
登录 后发表回答