Skip to content

Commit

Permalink
Omit brackets in Knit relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Sep 27, 2018
1 parent 4cc0e29 commit b590aa3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ChannelsGuideTest {

<!--- TOC -->

* [Channels (experimental)](#channels-(experimental))
* [Channels (experimental)](#channels-experimental)
* [Channel basics](#channel-basics)
* [Closing and iteration over channels](#closing-and-iteration-over-channels)
* [Building channel producers](#building-channel-producers)
Expand Down
2 changes: 1 addition & 1 deletion docs/select-expression.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SelectGuideTest {

<!--- TOC -->

* [Select expression (experimental)](#select-expression-(experimental))
* [Select expression (experimental)](#select-expression-experimental)
* [Selecting from channels](#selecting-from-channels)
* [Selecting on close](#selecting-on-close)
* [Selecting to send](#selecting-to-send)
Expand Down
2 changes: 2 additions & 0 deletions knit/src/Knit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ fun makeSectionRef(name: String): String = name
.replace(' ', '-')
.replace(".", "")
.replace(",", "")
.replace("(", "")
.replace(")", "")
.toLowerCase()

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

0 comments on commit b590aa3

Please sign in to comment.