Markdown Table shows multi lines text All In One
Markdown Table shows multi lines text All In One
Markdown Table 显示多行文本 / 换行
HTML tag <br/>
| name | desc |
|--|--|
| one line | abc|
| multi llines with `\n` | abc \n xyz |
| multi llines with `<br/>` | abc <br/> xyz |
| sql demo | MySQL 用户名首字母转换成大写,其余的小写字母<br/>\`\`\`sql<br/> `# ✅ SELECT user_id,` <br/>`CONCAT(UCASE(LEFT(name, 1)), LCASE(SUBSTRING(name, 2, LENGTH(name)))) AS name` <br/>`FROM Users`<br/>`ORDER BY user_id; `<br/>\`\`\`|
name | desc |
---|---|
one line | abc |
multi llines with \n |
abc \n xyz |
multi llines with <br/> |
abc xyz |
sql demo | MySQL 用户名首字母转换成大写,其余的小写字母 ```sql # ✅ SELECT user_id, CONCAT(UCASE(LEFT(name, 1)), LCASE(SUBSTRING(name, 2, LENGTH(name)))) AS name FROM Users ORDER BY user_id; ``` |
HTML tag <pre>
& <code>
&
& <br/>
<pre>pre</pre> <code>code</code>
<pre>pre</pre> <code>code</code>
| name | desc |
|--|--|
| one line | abc|
| multi llines with `\n` | abc \n xyz |
| multi llines with `<pre>` | <pre>abc \n xyz</pre> |
| multi llines with `<pre> <br/>` | <pre>abc <br/> xyz</pre> |
| multi llines with `<pre> ` | <pre>abc xyz</pre> |
name | desc |
---|---|
one line | abc |
multi llines with <pre> |
abc \n xyz |
multi llines with <pre> |
abc xyz |
multi llines with <pre> |
abc xyz |
refs
https://alvinalexander.com/text/how-put-multiple-lines-markdown-table-cell-multiline-table/
https://github.com/markdown-it/markdown-it/issues/406
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16778113.html
未经授权禁止转载,违者必究!