ember-learn / ember-learn/ember-cli-addon-docs

Block components contents clobbered into text only

Offen
#236 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
172
Forks
142
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.