Skip to content

Commit

Permalink
fixing chapter links in comparison edition
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-henz committed Feb 11, 2022
1 parent 3491ade commit 8f736a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion javascript/processingFunctions/processReferenceHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export const processReferenceHtml = (node, writeTo, chapterIndex) => {

writeTo.push(`<REF NAME="${referenceName}">`);

if (ref_type == "sec") {
if (ref_type == "chap") {
writeTo.push(
`<a class="superscript" id="${chapterIndex}-chap-link-${displayName}" href="./${href}">${displayName}</a></REF>`
);
} else if (ref_type == "sec") {
writeTo.push(
`<a class="superscript" id="${chapterIndex}-sec-link-${displayName}" href="./${href}">${displayName}</a></REF>`
);
Expand Down

0 comments on commit 8f736a7

Please sign in to comment.