nhsuk / betahealth

Rendering application for beta symptom and condition pages
https://beta.nhs.uk
MIT License
2 stars 8 forks source link

Four new conditions #241

Closed tyom closed 7 years ago

tyom commented 7 years ago

Pending final copy.

Trello card

tyom commented 7 years ago

In some cases we add a header or footer to panels. There's an existing .panelfooter class I'm not sure if it's been extended to include .panelheader but this would be useful. Is this possible in a custom filter?

@daniellemullis Currently MD filters are used for simple cases that just wrap content. One exception is reveal filter which takes parameter. It is possible to add more parameters to custom filters but it may complicate the Markdown text a bit too much. We need to take a closer look at how we use them before going too deep into custom filters territory. I think there's a Trello card for this in backlog.

In the meantime we use panel as a component (meaning it is defined in manifest.json or Wagtail). It receives values separately and is injected alongside main Markdown document.