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

Allow inline attachments in numbered lists #283

Merged
merged 2 commits into from
Aug 1, 2023
Merged

Conversation

brucebolt
Copy link
Member

At the moment, inline attachments do not work if included in a numbered list.

Adding a fix to allow this, as expected by publishers.

See commit messages for implementation details.

After merging and updating the gem in Whitehall, the affected document will need to be republished.

Trello card

@brucebolt brucebolt force-pushed the fix-link-in-ordered-list branch 2 times, most recently from 66cf680 to 1e59860 Compare August 1, 2023 11:00
@brucebolt brucebolt marked this pull request as ready for review August 1, 2023 11:01
This test currently fails as links are not supported in numbered lists.
We currently process numbered lists in a two step process:

1. create the list itself
2. parse each line within the list through govspeak again

In the second step, govspeak has no knowledge of the attachments as we
weren't including this information.

Therefore adding in the attachment data, so govspeak can include these
inline.
@brucebolt brucebolt force-pushed the fix-link-in-ordered-list branch from 1e59860 to 068b2bc Compare August 1, 2023 11:03
Copy link
Contributor

@JonathanHallam JonathanHallam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! Thanks :)

@brucebolt brucebolt merged commit 9ca12d6 into main Aug 1, 2023
@brucebolt brucebolt deleted the fix-link-in-ordered-list branch August 1, 2023 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants