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(plugins): subslide regex includes preceding empty lines #14

Merged
merged 1 commit into from
Sep 8, 2024

Conversation

nikolads
Copy link
Contributor

@nikolads nikolads commented Sep 8, 2024

The regex pattern for subslides (--) incorrectly matches preceding empty lines.

Example text:

foo

--
bar

Previously it would match \n--\n.
Now it matches just --\n.

Leaving the empty line intact is important in order for "bar" to be rendered in new paragraph.

The regex pattern for subslides (--) incorrectly matches preceding empty lines.

Example text:
```
foo

--
bar
```

Previously it would match `\n--\n`.
Now it matches just `--\n`.

Leaving the empty line intact is important in order for "bar" to be rendered in new paragraph.
@d3lio d3lio merged commit d77eba9 into d3lio:master Sep 8, 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

Successfully merging this pull request may close these issues.

2 participants