Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rendering callout blocks as notice blocks #662

Merged
merged 8 commits into from
Oct 24, 2024

Conversation

adamwoodnz
Copy link
Contributor

@adamwoodnz adamwoodnz commented Oct 23, 2024

@adamwoodnz adamwoodnz self-assigned this Oct 23, 2024
@adamwoodnz adamwoodnz changed the title Fix render callout as notice Fix rendering callout blocks as notice blocks Oct 23, 2024
@adamwoodnz adamwoodnz marked this pull request as ready for review October 23, 2024 20:46
@adamwoodnz adamwoodnz marked this pull request as draft October 23, 2024 20:52
Hide empty p tags and remove margin from second to last element if there is an o2-data script tag.
Adjust margins on second and second to last elements accordingly
@adamwoodnz adamwoodnz marked this pull request as ready for review October 23, 2024 23:19
@adamwoodnz adamwoodnz merged commit 854b348 into trunk Oct 24, 2024
2 checks passed
@adamwoodnz adamwoodnz deleted the fix/render-callout-as-notice branch October 24, 2024 00:36
adamwoodnz added a commit that referenced this pull request Oct 24, 2024
adamwoodnz added a commit that referenced this pull request Oct 24, 2024
adamwoodnz added a commit that referenced this pull request Oct 24, 2024
adamwoodnz added a commit that referenced this pull request Oct 24, 2024
* Revert "Revert "Fix rendering callout blocks as notice blocks (#662)" (#663)"

This reverts commit b2dea2b.

* Stop running shortcode block content through render_shortcode

* Hide only empty elements which are allowed

Some other empty elements are added via scripts, eg. iframe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Make blogs: Convert callout blocks to notice blocks
1 participant