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

Inline equations not recognized without a trailing space #17

Open
noze12 opened this issue Oct 17, 2024 · 0 comments
Open

Inline equations not recognized without a trailing space #17

noze12 opened this issue Oct 17, 2024 · 0 comments

Comments

@noze12
Copy link

noze12 commented Oct 17, 2024

Thank you for creating such a wonderful package!

It appears that inline equations are not recognized as such when there is no space following them.

Example (not recognized):

$a$は1です。

Example (recognized):

$a$ は1です。

Note: In Japanese sentences, words are often written without spaces between them.

It seems this lookahead assertion may be affecting this behavior. Is this assertion necessary?

return '(${inlinePatterns.join("|")})(?=[\\s?!.,:?!。,:]|\$)';

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