Skip to content

Commit

Permalink
Hide footnote info comment if suppressInfo is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
domdomegg committed May 12, 2024
1 parent 65de600 commit 4734065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/gdc.gs
Original file line number Diff line number Diff line change
Expand Up @@ -2094,7 +2094,7 @@ md.handleFootnote = function(footnote) {

// Now, we're ready for the footnote itself.
gdc.isFootnote = true;
if (gdc.footnoteNumber === 1) {
if (gdc.footnoteNumber === 1 && !gdc.suppressInfo) {
gdc.writeStringToBuffer('\n\n<!-- Footnotes themselves at the bottom. -->'
+ '\n## Notes');
}
Expand Down
2 changes: 1 addition & 1 deletion addon/html.gs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ html.handleFootnote = function(footnote) {
// Now, write the footnotes themselves.
gdc.isFootnote = true;
// Open list for first footnote.
if (gdc.footnoteNumber === 1) {
if (gdc.footnoteNumber === 1 && !gdc.suppressInfo) {
gdc.writeStringToBuffer('\n\n<!-- Footnotes themselves at the bottom. -->'
+ '\n\n<h2>Notes</h2>'
+ '\n<div class="footnotes">'
Expand Down

0 comments on commit 4734065

Please sign in to comment.