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

Improve support for multiline short codes #4

Open
techxplorer opened this issue Apr 2, 2024 · 0 comments
Open

Improve support for multiline short codes #4

techxplorer opened this issue Apr 2, 2024 · 0 comments

Comments

@techxplorer
Copy link

Thanks for working on #3.

As I noted in a late update to the discussion (errata-ai/vale#789) there is an edge case where the updated regular expression doesn't work. Specifically where there is no trailing whitespace.

My editing environment is set to remove trailing whitespace from lines.

If the multiline short code starts like this, the change in #3 works as expected:

{{% unsplash

If the multiline short code starts like this, it fails:

{{% unsplash

Note the trailing whitespace in the first example, and that it is removed in the second example.

I'm not familiar enough with regular expressions to tell what needs to be changed.

Is there any way it could be updated to support multiline short codes when trailing whitespace is removed?

@techxplorer techxplorer changed the title Improved support for multiline short codes Improve support for multiline short codes Apr 9, 2024
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

No branches or pull requests

1 participant