Greasy Fork

Greasy Fork is available in English.

Confluence Auto Numbered Headings

Adds numbered headings button to the page editor in Atlassian Confluence. Based on work by Markus Jenu at https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-add-numbering-to-headings-in-Confluence/qaq-p/315517#M87046.

当前为 2021-03-30 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
elahd
评分
0 0 0
版本
0.6
创建于
2019-04-01
更新于
2021-03-30
大小
5.4 KB
许可证
暂无
适用于

Description

Adds numbered headings button to the page editor in Atlassian Confluence. This will number headings as follows:

1. Header 1

1.2 Header 2

1.2.3 Header 3

2. Header 1

Based on work by Markus Jenu at https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-add-numbering-to-headings-in-Confluence/qaq-p/315517#M87046.

The original script was intended to be installed as a Confluence user macro. Adding macros requires admin rights to your Confluence instance. This script allows non-admin users to run this script locally.

Instructions

This works out-of-the-box on Confluence instances hosted by Atlassian. If you run an internal / on-premises instance of Confluence, you'll need to change script settings via TamperMonkey as follows:

1) Go to Tampermonkey > Dashboard 2) Under the "Installed userscripts" tab, click on the edit icon for Confluence Auto Numbered Headings. 3) Click on the "Settings" tab. 4) Under "Includes/Excludes" > "User matches", add the URL for your internal Confluence instance. The format should be something like https://confluence.companyintranet.com/*

Change Log

  • 2020-03-18 v0.4: Fixed a bug in which extra text was added to the end of headings that contained HTML. For example, <h3>Example <strong>Heading</strong></h3> would be changed to <h3>1.3 Example Heading <strong>Heading</strong></h3>.