We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following markdown produces an invalid link:
## 1\. introduction [link to intro](#1-introduction)
It looks like pandoc's auto_identifiers extension strips the leading number from numbered sections (emphasis mine):
auto_identifiers
The default algorithm used to derive the identifier from the heading text is: Remove all formatting, links, etc. Remove all footnotes. Remove all non-alphanumeric characters, except underscores, hyphens, and periods. Replace all spaces and newlines with hyphens. Convert all alphabetic characters to lowercase. Remove everything up to the first letter (identifiers may not begin with a number or punctuation mark). If nothing is left after this, use the identifier section.
The default algorithm used to derive the identifier from the heading text is:
I believe the solution is for me to update {sandpaper} to use the gfm_auto_identifiers extension instead, which should be updated here:
gfm_auto_identifiers
sandpaper/R/render_html.R
Line 67 in 3bb22ef
As for why #1-introduction is being transformed to #id_1-introduction, that's a bit of a mystery that I have to dig further into.
#1-introduction
#id_1-introduction
Originally posted by @zkamvar in carpentries/instructor-training#1497 (comment)
The text was updated successfully, but these errors were encountered:
zkamvar
No branches or pull requests
The following markdown produces an invalid link:
It looks like pandoc's
auto_identifiers
extension strips the leading number from numbered sections (emphasis mine):I believe the solution is for me to update {sandpaper} to use the
gfm_auto_identifiers
extension instead, which should be updated here:sandpaper/R/render_html.R
Line 67 in 3bb22ef
As for why
#1-introduction
is being transformed to#id_1-introduction
, that's a bit of a mystery that I have to dig further into.Originally posted by @zkamvar in carpentries/instructor-training#1497 (comment)
The text was updated successfully, but these errors were encountered: