Skip to content

Commit

Permalink
Merge pull request #715 from nature-of-code/fix/rm-whole-chapters-ref
Browse files Browse the repository at this point in the history
Remove page number for whole chapter reference
  • Loading branch information
jasongao97 committed Feb 4, 2024
2 parents ab128c0 + 36877f6 commit b5eda6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magicbook/stylesheets/components/typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ a {
color: inherit;

// Internal links
&:not([href^='http'])::after {
// for the ones include '#' but not at the end
&:not([href^='http'])[href*='#']:not([href$='#'])::after {
content: ' (see page ' target-counter(attr(href), page) ')';
}

Expand Down

0 comments on commit b5eda6f

Please sign in to comment.