# 附件链接后的文本将不会被渲染，因为启用了内联 PDF 预览主题组件

**URL:** https://meta.discourse.org/t/text-after-attachment-link-will-not-be-rendered-due-to-inline-pdf-previews-theme-component/242325
**Category:** Support
**Created:** [2022年十月19日 08:18 UTC](https://meta.discourse.org/t/text-after-attachment-link-will-not-be-rendered-due-to-inline-pdf-previews-theme-component/242325 "2022-10-19T08:18:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [2022年十月19日 08:18 UTC](https://meta.discourse.org/t/text-after-attachment-link-will-not-be-rendered-due-to-inline-pdf-previews-theme-component/242325/1 "2022-10-19T08:18:12Z")

</div>

在我的讨论中，“text after”在渲染时丢失了  
`Text before [file.pdf|attachment](upload://oTcQPr8BPk5ffpUXRuW3CKe4fyD.pdf) text after`  
尽管编辑时的预览看起来正常。

Text before [file.pdf](https://meta.discourse.org/404) text after

移除 `|attachment` 后，“text after”就会显示出来。

很遗憾，我无法在此处重现它。

在已发布的页面上，“text after”会显示出来。

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [2022年十月19日 09:40 UTC](https://meta.discourse.org/t/text-after-attachment-link-will-not-be-rendered-due-to-inline-pdf-previews-theme-component/242325/2 "2022-10-19T09:40:35Z")

</div>

您好，

您是否使用了 [Inline PDF Previews](https://meta.discourse.org/t/inline-pdf-previews/157649?u=dodesz) 这个主题组件？我刚才检查了一下，如果启用了该组件，似乎可以重现这个问题。我认为这是因为该组件覆盖了文本后面的文件名行，只显示文件名。正如您在图片中看到的，文件大小也没有显示。  
“之后”文本只出现在新的一行上。

 ![Screenshot 2022-10-19 at 11.30.58](https://global.discourse-cdn.com/meta/original/4X/7/2/5/7254d6a0e9aa94a8ab7f1a18a97e397d67d283c7.png)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年十一月18日 09:40 UTC](https://meta.discourse.org/t/text-after-attachment-link-will-not-be-rendered-due-to-inline-pdf-previews-theme-component/242325/3 "2022-11-18T09:40:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
