fixed broken links on the Help screen
This commit is contained in:
parent
7fc9a197e7
commit
c64ef283d3
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ static convertHeaders(markdown) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def header = line.replaceAll("^#+", "").trim()
|
def header = line.replaceAll("^#+", "").trim()
|
||||||
def anchor = header.toLowerCase().replaceAll("[^a-z0-9]+", "-")
|
def anchor = header.toLowerCase().replaceAll("[^a-z0-9]+", "-").replaceAll("[\\-]+\$", "")
|
||||||
|
|
||||||
return "<h${headerNumber} id=\"${anchor}\">${header}</h${headerNumber}>"
|
return "<h${headerNumber} id=\"${anchor}\">${header}</h${headerNumber}>"
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue