shdoc
shdoc copied to clipboard
wrong argument ordering and numbering when the number of argument >= 4
For the function block
- when you have 4 @arg or more, the generated markdown becomes unordered
- when you have 10 @arg or more, the generated markdown does no more apply the bold pattern
To correct this:
line 26, replace: styles["github", "argN", "from"] = "^(\$[0-9]) (\S+)" by: styles["github", "argN", "from"] = "^(\$[0-9]+) (\S+)"
line 203, replace: for (i in docblock["arg"]) { by: for (i =1; i <= length(docblock["arg"]); i++) {
This should be fixed by commit be091b9481b013076b02cd8f6af52aec5ec96a4b.