docgen: implement doc link resolution in current module (#18642)

This commit is contained in:
Andrey Makarov 2021-10-28 20:20:52 +03:00 • committed by GitHub
commit 7ba2659f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1833 additions and 143 deletions

View file

@ -273,6 +273,11 @@ func nimIdentNormalize*(s: string): string =
##
## That means to convert to lower case and remove any '_' on all characters
## except first one.
##
## .. Warning:: Backticks (`) are not handled: they remain *as is* and
## spaces are preserved. See `nimIdentBackticksNormalize
## <dochelpers.html#nimIdentBackticksNormalize,string>`_ for
## an alternative approach.
runnableExamples:
doAssert nimIdentNormalize("Foo_bar") == "Foobar"
result = newString(s.len)