Confluence 标记表格式如何工作?

发布于 2025-01-11 20:41:06 字数 424 浏览 2 评论 0原文

我正在构建一个工具,该工具将创建一个格式化的数据页面,我可以将其粘贴到 confluence 中。我遇到的问题是表格。根据帮助页面,我应该能够使用以下标记来创建表格,但是当我将其粘贴到其中时,它保持原样。

|| Col1 || Col2 || Col3 ||
|---|---|---|
|Value1|Value2|Value3|
|Value4|Value5|Value6|

如果我在任何行上按回车键,则只有该行会变成表,并且在后续行上按回车键不会将这些行添加到同一个表中。无论如何,我无法对所有行按回车键,因此这不是一个可行的解决方案。 我还尝试使用宏来插入它,但随后它将所有行变成一行。我缺少什么?

仅供参考,我拒绝将其构建为完整的 html 页面,因为我想使用内置的 TOC 功能,并且不确定这将如何进行,而且据我所知,markdown 不支持它

I'm building a tool that will create a formatted page of data that I can paste into confluence. The issue I'm having is with tables. According to the help pages I should be able to use the following markup to create a table, but when I paste it in it stays as-is.

|| Col1 || Col2 || Col3 ||
|---|---|---|
|Value1|Value2|Value3|
|Value4|Value5|Value6|

If I hit return on any of the rows, only that row gets turned into a table, and hitting return on subsequent rows doesn't add the rows to the same table. I can't hit return on all the rows anyway so this isn't a viable solution.
I've also tried using the macro to insert it, but then it turns all rows into a single row. What am I missing?

As an FYI, I am resisting building this out as a full html page as I want to use the built-in TOC functionality and not sure how that will go plus as far as I can tell the markdown doesn't support it

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情未る 2025-01-18 20:41:06

似乎问题在于标记 - 如果您在使用标记宏时从下拉列表中选择“Confluence wiki”,它就可以工作

Seems it's the markdown that is the issue - if you select "Confluence wiki" from the dropdown when using the markup macro it works

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文