-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Problem in detection of lang: in yaml front matter #156
Comments
The problem seems to be coming from regex which doesn't match new line in the case where there is no quotes: ltex-ls/src/main/kotlin/org/bsplines/ltexls/parsing/markdown/MarkdownFragmentizer.kt Line 55 in 13af12b
The regex: Should be replaced by: To catch everything between lang: and the newline However I have not tested this solution and a test should be added to catch this behaviour |
This issue is now fixed on If you don't want to wait, you can try out the nightly pre-release tomorrow. Nightly pre-releases are published every morning at around 4am UTC. |
Describe the bug
In the case where
lang: language
where language is not in quotes, the yaml parsers seems to take on all following options as a language:'language\nfollowingtitle: option\n'
Steps to reproduce
Steps to reproduce the behavior:
lang: language
in yaml front matter. The language shouldn't be encased in quotesExpected behavior
Only us language string and stop at newline
Sample document
LTeX LS log
Version information
List here the version information of the relevant software.
Additional context/information
This works without problem when the language string is between quotes. By looking at tests, this doesn't seem like something that can be seen by the current tests for the yaml front matter
The text was updated successfully, but these errors were encountered: