Add html ids to headlines

This commit is contained in:
Christoph Hagen
2023-02-28 09:31:44 +01:00
parent a2ed35a26d
commit 86440af01f
2 changed files with 21 additions and 1 deletions

View File

@ -82,6 +82,10 @@ extension Substring {
func between(first: String, andLast last: String) -> String {
dropBeforeFirst(first).dropAfterLast(last)
}
func last(after: String) -> String {
components(separatedBy: after).last!
}
}
extension String {