Fix typo in # anchor links (#936)

Remove all trailing `/` slash in `#` anchor links.
Find `(\[.*\]:.*#.*)/$` and replace with `$1` to do the work.
This commit is contained in:
狂飙 2019-10-09 21:33:30 +08:00 committed by Patrick Kollitsch
parent a3e1b0ae48
commit dbfd3333bb
2 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ It's possible to set some options for Markdown rendering in a content's front ma
* [JSON Spec][json]
[variables]: /variables/
[aliases]: /content-management/urls/#aliases/
[aliases]: /content-management/urls/#aliases
[archetype]: /content-management/archetypes/
[bylinktitle]: /templates/lists/#by-link-title
[config]: /getting-started/configuration/ "Hugo documentation for site configuration"

View File

@ -549,8 +549,8 @@ See the documentation on [`where` function][wherefunction] and
[sections]: /content-management/sections/
[sectiontemps]: /templates/section-templates/
[sitevars]: /variables/site/
[taxlists]: /templates/taxonomy-templates/#taxonomy-list-templates/
[taxterms]: /templates/taxonomy-templates/#taxonomy-terms-templates/
[taxlists]: /templates/taxonomy-templates/#taxonomy-list-templates
[taxterms]: /templates/taxonomy-templates/#taxonomy-terms-templates
[taxvars]: /variables/taxonomy/
[views]: /templates/views/
[wherefunction]: /functions/where/