Incorrect underscore when using blank lines
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- documentation
Direzione di ricerca
Reproduce the issue with the NatSpec example and inspect the Markdown generation path that handles blank lines and underscores. The fix is done when the generated .md preserves the paragraph without wrapping all content in underscores and remains valid Markdown.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When using empty lines in the NatSpec like the following:
/**
* @dev Displayed when the amount of {ISwap-Asset} has a length of zero.
*
* NOTE: The `biding` or `asking` array must not be empty to avoid mistakes
* when creating a swap. Assuming one side of the swap is empty, the
* correct approach should be the usage of {transferFrom} and we reinforce
* this behavior by requiring the length of the array to be bigger than zero.
*/
error InvalidAssetsLength();
The generation will try to embrace all content in underscore (_) like so:
``solidity
error InvalidAssetsLength()
``
\_Displayed when the amount of {ISwap-Asset} has a length of zero.
NOTE: The `biding` or `asking` array must not be empty to avoid mistakes
when creating a swap. Assuming one side of the swap is empty, the
correct approach should be the usage of {transferFrom} and we reinforce
this behavior by requiring the length of the array to be bigger than zero.\_
But the .md will consider it invalid when generating the output, not processing the underscore correctly, resulting in:
- Lingua principale
- TypeScript
- Stelle
- 460
- Fork
- 111
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenZeppelin/solidity-docgen
-
Support for Hardhat 3Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OpenZeppelin/solidity-docgen#471 · 2 reazioni ·
-
using $ as a return parameter name doesn't workForse già presa @pucedoteth l’ha presa 56 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
OpenZeppelin/solidity-docgen#464 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 48/100
OpenZeppelin/solidity-docgen#439 · 2 commenti ·
-
Use docgen in the browserAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
OpenZeppelin/solidity-docgen#437 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
OpenZeppelin/solidity-docgen#433 · 2 commenti ·
Tutte le issue di OpenZeppelin/solidity-docgen
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
jeanibarz/knowledge-base-mcp-server#1268 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
Koenkk/zigbee-herdsman-converters#13820 ·
I maintainer di solito rispondono entro 2 giorni
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jest-community/eslint-plugin-jest#2052 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Wallet functions throws TypeError when the wallet has no account IDForse già presa @Medhansh-741 l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
hiero-ledger/hiero-sdk-js#4781 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno