-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with block elements inside CTA and LegislativeList
In #291, we made a change to how the call to action and legislative list components are parsed. This involved the use of the `parse_block_html` option, which enables parsing in HTML blocks until it is toggled off. Since this change, we have received Zendesk tickets regarding the use of the image component inside a call to action. Because we toggle off the parsing of HTML blocks entirely within call to actions, the HTML of the image is not parsed correctly. To fix this, we can enable parsing of the surrounding divs of the call to action and legislative list components only. This means that any inner blocks (such as the `figure` tag surrounding an image) are parsed using their default mechanism [1]. [1]: https://kramdown.gettalong.org/syntax.html#html-blocks
- Loading branch information
1 parent
58b4417
commit fa2a35a
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters