Skip to content

Commit 71d7418

Browse files
committed
Allow explicit paragraph numbering.
1 parent 01fe8d2 commit 71d7418

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

section.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ limitations under the License.
7171
},
7272

7373
numberParagraph: function(number, element) {
74+
// If the paragraph is explicitly numbered, use that number.
75+
if (element.hasAttribute("number"))
76+
number = element.getAttribute("number")
77+
7478
var id = this.id + '.' + number;
7579
if (element.id) {
7680
console.warn('Paragraph already has id:', element);

0 commit comments

Comments
 (0)