-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
表格类型加密解密后无法正常渲染成表格 #1
Comments
Hi,我本地环境下无法复现,请问能提供更多的信息么? |
你好,
正常渲染成 HTML 后是: <table>
<thead>
<tr>
<th align="center">序号</th>
<th align="center">测试</th>
<th align="center">测试</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">1</td>
<td align="center">1</td>
<td align="center">1</td>
</tr>
<tr>
<td align="center">2</td>
<td align="center">2</td>
<td align="center">2</td>
</tr>
<tr>
<td align="center">3</td>
<td align="center">3</td>
<td align="center">3</td>
</tr>
</tbody>
</table> 加上 <p>| 序号 | 测试 | 测试 |
| | | |
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |</p>
|
抱歉我们还是未能浮现你的问题...你确定在没有使用 |
完整 MarkDown 内容如下: ---
author: WithdewHua
categories: []
tags: []
series: []
date: "2019-04-17T20:32:11+08:00"
lastmod:
description:
featured:
featuredalt:
featuredpath:
linktitle:
title: test
type: post
---
这是不加 `shortcodes`的表格:
| 序号 | 测试 | 测试 |
| :--: | :--: | :--: |
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |
这是加了`shortcodes`的表格:
<!--more-->
{{% hugo-encryptor "test" %}}
| 序号 | 测试 | 测试 |
| :--: | :--: | :--: |
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |
{{% /hugo-encryptor %}} 渲染成 HTML 后的页面:https://5cb71e881407b22fa839b3db--withdewhua.netlify.com/ |
Hi,十分抱歉,你提供的这份文件,在我们两人的机器上都能够正常渲染(Hugo 0.54.0,也是 Linux 系统),怀疑是主题的问题? 虽然依然不知道原因是什么,不过我搜了很久的谷歌,给你提出两个可能的解决方案:
{{ .Inner | markdownify }}
|
两种方案都尝试了,但是依然没有解决,可能是主题的原因吧,算了,我直接用 HTML 标签好了,感谢两位的解答。 |
找到解决办法了,使用 blackfriday 解析器中的 table 简写写法,即可正常解析。 |
好的,感谢反馈! |
与表格有关的标签在加密解密后都变成了
<p>
,导致表格显示不正常。The text was updated successfully, but these errors were encountered: