Skip to content

Commit b590aa3

Browse files
committed
Omit brackets in Knit relative links
1 parent 4cc0e29 commit b590aa3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/channels.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ChannelsGuideTest {
2222

2323
<!--- TOC -->
2424

25-
* [Channels (experimental)](#channels-(experimental))
25+
* [Channels (experimental)](#channels-experimental)
2626
* [Channel basics](#channel-basics)
2727
* [Closing and iteration over channels](#closing-and-iteration-over-channels)
2828
* [Building channel producers](#building-channel-producers)

docs/select-expression.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SelectGuideTest {
2525

2626
<!--- TOC -->
2727

28-
* [Select expression (experimental)](#select-expression-(experimental))
28+
* [Select expression (experimental)](#select-expression-experimental)
2929
* [Selecting from channels](#selecting-from-channels)
3030
* [Selecting on close](#selecting-on-close)
3131
* [Selecting to send](#selecting-to-send)

knit/src/Knit.kt

+2
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ fun makeSectionRef(name: String): String = name
328328
.replace(' ', '-')
329329
.replace(".", "")
330330
.replace(",", "")
331+
.replace("(", "")
332+
.replace(")", "")
331333
.toLowerCase()
332334

333335
class Include(val regex: Regex, val lines: MutableList<String> = arrayListOf())

0 commit comments

Comments
 (0)