gpt4 book ai didi

confluence - 插入用户宏时自动换行

转载 作者:行者123 更新时间:2023-12-04 16:09:45 46 4
gpt4 key购买 nike

我正在使用 confluence from atlassian我需要一种使用用户宏来修改文本大小、系列和颜色的方法。我定义了我的宏如下:

## @param 0:title=forecolor|type=string|desc=Text foreground color.  Enter colors such as: red / blue / green / etc.
## @param 1:title=backcolor|type=string|desc=Text background color. Enter colors such as: red / blue / green / etc.
## @param 2:title=size|type=string|desc=Enter size in px, for example, 20px.
## @param 3:title=family|type=string|desc=Enter the font family (listing can be found here: http://www.w3.org/Style/Examples/007/fonts.en.html) (example: serif).
<span style="color: $param0; background-color: $param1; font-size: $param2; font-family: $param3;">$body</span>

现在用户可以选择这个宏“时尚”:

enter image description here

但是,confluence 会自动添加一个新的行标记,其中包含我希望在其旁边显示的内容。假设我有文字:

The brown fox jumped over the cow.



我想设置单词 fox 的背景颜色为红色,其前色为黄色。如果我将这个宏应用于那个词,我最终会得到这样的结果:

enter image description here

所以它会自动在分配了宏的单词上换行。我想将它嵌入整个句子并将格式应用于单个单词。即使我选择 inline在选项中它仍然把它放在一个新的行中。

结果出来了:

enter image description here

这是编辑模式下的屏幕截图:

enter image description here

我已经选择了内联,发布页面仍然显示 the brown在线咨询 fox在另一条线上,最后 jumped over the cow在另一条线上。 Atlassian Confluence 5.4.4 这个宏应该像 <span> 一样工作标签,以便项目不会显示为块样式元素。

最佳答案

没有好的方法可以做到这一点。您可以跟踪一个 JIRA 问题:CONF-15860 .

关于confluence - 插入用户宏时自动换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23767907/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com