honkit / honkit

:book: HonKit is building beautiful books using Markdown - Fork of GitBook

Home Page:https://honkit.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

link could not be jumpped to anchor while type named with `_t`

jemyzhang opened this issue · comments

Summary

link could not be jumpped to anchor while type named with _t.
The link generated as -t, but in-page anchor generated as xxxxt.

  • HonKit version: 3.7.5

Step to reproduce

convert doxygen to honkit with doxybook2

doxygen Doxyfile
cd honkit
mkdir output
cp README.md output
./doxybook2 -i ../xml -o output -c config.json --summary-input SUMMARY.md.tmpl --summary-output output/SUMMARY.md
10070  npx honkit build --log=debug

Expected results

LINK: <a href="namespaceXXX_1_1A.html#enum-capabilities-t">capabilities_t</a>
ANCHOR: <h3 id="enum-capabilities-t">enum capabilities_t</h3>

Actual results

LINK: <a href="namespaceXXX_1_1A.html#enum-capabilities-t">capabilities_t</a>
ANCHOR: <h3 id="enum-capabilitiest">enum capabilities_t</h3>
debug: readme found at README.md 
debug: summary file found at SUMMARY.md 
debug: cleanup folder "/home/jemyzhang/workspace/github/test/honkit/output/_book" 
(node:657565) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use `node --trace-deprecation ...` to show where the warning was created)
info: 5 plugins are installed 
info: 5 explicitly listed 
info: plugin "highlight" is loaded
info: plugin "search" is loaded
info: plugin "lunr" is loaded
info: plugin "fontsettings" is loaded
info: plugin "theme-default" is loaded
info: found 7 pages 
info: found 0 asset files 
debug: calling hook "config" 
debug: calling hook "init" 
debug: copy assets from theme /home/jemyzhang/.npm/_npx/8ad405cc3f853826/node_modules/@honkit/honkit-plugin-theme-default/_assets/website 
debug: copy resources from plugin /home/jemyzhang/.npm/_npx/8ad405cc3f853826/node_modules/gitbook-plugin-fontsettings/assets 
debug: copy resources from plugin /home/jemyzhang/.npm/_npx/8ad405cc3f853826/node_modules/gitbook-plugin-lunr/assets 
debug: copy resources from plugin /home/jemyzhang/.npm/_npx/8ad405cc3f853826/node_modules/gitbook-plugin-search/assets 
debug: copy resources from plugin /home/jemyzhang/.npm/_npx/8ad405cc3f853826/node_modules/@honkit/honkit-plugin-highlight/css 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: calling hook "page" 
debug: index page README.md 
debug: index page Classes/README.md 
debug: index page Namespaces/README.md 
debug: index page Namespaces/namespaceXXX.md 
debug: index page Namespaces/namespaceXXX_1_1A.md 
debug: index page Files/README.md 
debug: index page Files/test_8h.md 
debug: calling hook "finish:before" 
debug: calling hook "finish" 
debug: write search index 
info: >> generation finished with success in 0.5s !