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

Add multiline matches #107

Open
sapkra opened this issue Jan 30, 2020 · 1 comment
Open

Add multiline matches #107

sapkra opened this issue Jan 30, 2020 · 1 comment

Comments

@sapkra
Copy link

sapkra commented Jan 30, 2020

Currently it's impossible to match a string with line breaks because convertLineBreaks replaces all of them with <br/> tags which causes the matcher to get get a splitted string.

e.g.
Content:

```foo
bar```

Matcher gets:

```foo
bar```
@milesj
Copy link
Owner

milesj commented Jan 30, 2020

I wonder if we move convertLineBreaks from running at the start (https://github.com/milesj/interweave/blob/master/packages/core/src/Parser.ts#L270) to running per node after matchers have ran.

Theoretically it should work and be easy, but who knows :P

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

2 participants