Skip to content

Commit e412f80

Browse files
committed
Multi: comply with Hugo rules for HTML comments
If an HTML starts a line within a paragraph, Hugo will end the paragraph. E.g., this paragraph: Mary had a little lamb <!-- source: my childhood --> whose fleece was white as snow. Becomes: <p>Mary had a little lamb</p> <!-- source: my childhood --> whose fleece was white as snow. This commit adds a test to fail on any comments like that and fixes all existing cases.
1 parent 80e80f7 commit e412f80

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+100
-44
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ test-before-build: $(compatibility_validation) $(topic_validation)
4343
@ ## - MD009: trailing spaces (can lead to extraneous <br> tags
4444
bundle exec mdl -g -r MD009 .
4545

46+
## Hugo will end a paragraph if a line within it starts an HTML comment; we don't want that
47+
! git grep -l '^ *<!--' '*.md' | xargs perl -0777 -ne 'print "$$ARGV\n" if /.+\n^ *<!--/m' | grep .
48+
4649
## Check that posts declare certain fields, see issue #155 and PR #156
4750
! git --no-pager grep -L "^slug: " _posts
4851
! git --no-pager grep -L "^title: " _posts

_compat/en/abra.md

+1

_compat/en/binance.md

+1

_compat/en/bitcoin-core-wallet.md

+1

_compat/en/bitcoin-wallet.md

+1

_compat/en/bitgo.md

+1

_compat/en/bitmex.md

+1

_compat/en/bitnob.md

+1

_compat/en/bitpowr.md

+1

_compat/en/bitrefill.md

+1

_compat/en/bitstamp.md

+1

_compat/en/blockchaininfo.md

+1

_compat/en/blocksettle.md

+1

_compat/en/casa.md

+1

_compat/en/cashapp.md

+1

_compat/en/coinbase.md

+1

_compat/en/conio.md

+1

_compat/en/copay.md

+1

_compat/en/edge.md

+1

_compat/en/electrum.md

+1

_compat/en/greenaddress.md

+1

_compat/en/jaxx.md

+1

_compat/en/kraken.md

+1

_compat/en/ledger-live.md

+1

_compat/en/mycelium-android.md

+1

_compat/en/onekey.md

+1

_compat/en/opendime.md

+1

_compat/en/purse.md

+1

_compat/en/river-financial.md

+1

_compat/en/samourai.md

+1

_compat/en/trezor.md

+1

_compat/en/wasabi.md

+1

_compat/en/xapo.md

+1

_includes/functions/details-list.md

+1

_includes/functions/sort-rename.md

+1

_includes/linkers/issues.md

+1

_includes/newsletter-references.md

+3-2

_includes/references.md

+2-4

_includes/snippets/recap-ad.md

+1

_includes/specials/taproot/en/04-why-wait.md

+2

_includes/specials/taproot/en/18-trivia.md

+2

_includes/specials/taproot/ja/04-why-wait.md

+2

_includes/specials/taproot/ja/06-multisignatures.md

+1

_includes/specials/taproot/ja/18-trivia.md

+4-4

0 commit comments

Comments
 (0)