ember-learn / ember-learn/ember-cli-addon-docs
Block components contents clobbered into text only
- Langage dominant
- JavaScript
- Étoiles
- 172
- Forks
- 142
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
This code: https://github.com/ember-learn/ember-cli-addon-docs/blob/b4bfe91ad58406808b960fc1870d571b16b462a4/lib/utils/compile-markdown.js#L28-L54 prevents the use of block components to yield to Markdown.
This leads to it being impossible to wrap the Markdown in a component to provide a highlight. For example, this does not work:
```
{{#highlight-this for='engineering'}}
#### Note
I don't recommend actually eating this pineapple.
{{/highlight-this}}
```
Instead of clobbering the markup, can we instead try to preserve it as much as possible?
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par lib/utils/compile-markdown.js, en particulier les lignes 28-54, pour comprendre où le contenu des composants de bloc est converti en texte. Reproduisez l’exemple highlight-this et préservez son contenu Markdown lors de la compilation sans écraser la structure du composant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- documentation
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100