一个“样本”参考未显示表格...但显示在标准段落中
这是我的代码。它似乎不是畸形的表条目。 Asciidoctor-PDF'构建'不会产生任何错误,并且确实创建了PDF文件。这一切都有效...但是表示例文本是空白的。
[cols="50,20,30", options="header"]
|===
| Result | Key | Description
| [.sample]#:# | : | "Thanks for using Coast Line"
| [.sample]#;# | ; | Modern "COAST LINE"
| [.sample]#?# | ? | Nose Logo FULL DETAIL - Inverse
| [.sample]#_# | _ | Boxcar details
| [.sample]#+# | + | Built stencil
| [.sample]#/# | / | DF Logo
| [.sample]#<# | < | Slightly older "COAST LINE"
| [.sample]#=# | = | Nose Logo
| [.sample]#># | > | Node Logo Inverse
| [.sample]#0# | @ | Nose Logo FULL DETAIL
|===
因此,桌子中没有任何样本都不会显示。最右边的桌子条目如预期的那样显示。
但是,文档的另一部分中的以下内容正常工作(所以我知道yaml很好)
=== Uppercase
[.sample]#ATLANTIC#
,因为我没有任何错误,所以我不确定如何调试。
Here is my code. It does not seem to be a malformed table entry. The ASCIIDOCTOR-PDF 'build' produces no error and does create a PDF file. It all works... but the table SAMPLE text is blank.
[cols="50,20,30", options="header"]
|===
| Result | Key | Description
| [.sample]#:# | : | "Thanks for using Coast Line"
| [.sample]#;# | ; | Modern "COAST LINE"
| [.sample]#?# | ? | Nose Logo FULL DETAIL - Inverse
| [.sample]#_# | _ | Boxcar details
| [.sample]#+# | + | Built stencil
| [.sample]#/# | / | DF Logo
| [.sample]#<# | < | Slightly older "COAST LINE"
| [.sample]#=# | = | Nose Logo
| [.sample]#># | > | Node Logo Inverse
| [.sample]#0# | @ | Nose Logo FULL DETAIL
|===
So none of the samples will show up in the table. The rightmost table entries show up as expected.
But the following in another part of the document works fine (so I know YAML is good)
=== Uppercase
[.sample]#ATLANTIC#
Since I don't get any errors, so I'm not sure how to debug it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经尝试过您的示例标记,仅添加标题(使其成为有效文档)和前导段落(以保证 PDF 具有可见内容):
使用 asciidoctor-pdf 1.6.2,生成的 PDF 没有错误,并且看起来正确:
根据您提供的信息,我没有发现问题。
您在标记中使用自定义角色
sample
。我建议调查您的主题,看看该角色是否导致您遇到的渲染问题。您提到了 YAML,但这里没有 YAMY,只有 Asciidoc 标记。
I've tried your sample markup, adding only a title (to make it a valid document) and a leading paragraph (to guarantee that the PDF has visible content):
With asciidoctor-pdf 1.6.2, the PDF generated with no errors and looks correct:
Bsed on the information that you have provided, I don't see a problem.
You are using the custom role
sample
in your markup. I'd suggest investigating your theme so see if that role is causing the rendering issue that you are encountering.You mentioned
YAML
but there is no YAMY here, just Asciidoc markup.