Comments (3)
LTEX is not Pandoc, nor it is claiming to support all Pandoc extensions. Converting to feature request.
from ltex-ls.
It's quite complicated. LTEX LS uses flexmark-java, which requires that all block nodes (such as source code with ```
delimiters, or the custom display math blocks with $$
delimiters) are on their own lines. This means that
$$do not check me$$
should not have been parsed as display math by LTEX LS, as the $$
are not on their own lines. However, due to a bug, LTEX LS ignored everything after the initial $$
, so it parsed the example as follows:
[$$ | DISPLAY_MATH_START_DELIMITER][do not check me$$ | IGNORED]
[do not check me | DISPLAY_MATH_CONTENTS]
[$$ | DISPLAY_MATH_END_DELIMITER]
[do not check me | PARAGRAPH_TEXT]
[$$ | DISPLAY_MATH_START_DELIMITER]
Even when fixing this bug, it's not possible to parse the example like Pandoc does due to flexmark-java requiring the block delimiters are on their own lines. However, I implemented a workaround that parses the first display math block as inline math, which has a similar effect for our purposes:
[$ | INLINE_MATH_START_DELIMITER][$do not check me$ | INLINE_MATH_CONTENTS][$ | INLINE_MATH_END_DELIMITER]
[do not check me | PARAGRAPH_TEXT]
[$$ | DISPLAY_MATH_START_DELIMITER]
[do not check me | DISPLAY_MATH_CONTENTS]
[$$ | DISPLAY_MATH_END_DELIMITER]
from ltex-ls.
This issue is now fixed on develop
. The fix will be included in the next release of LTEX.
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.
from ltex-ls.
Related Issues (20)
- ltex-cli: out of bounds exception for errors than span multiple lines
- Neovim: Skipping text check as LTeX has been disabled for files with code language ID 'tex' via ltex.enabled HOT 3
- Special characters are not resolved
- Ability to disable rules inline or for a section of text HOT 1
- Native binaries
- "Unknown command '_ltex.*', ignoring" HOT 2
- How to use dictionary with ltex-cli? HOT 3
- Specify LTeX commands through inline comments
- Support additional LaTeX commands and environments in ltex-ls
- Can not add words to dictionary
- Some way to change buffer's language.
- Build for BSD HOT 1
- Can we read credentials from a file?
- Allow only linting comments matching a pattern, e.g. `//!` and `///` in rust instead of `//`
- Sending workspace/configuration requests to client without capability
- Checking "!}" or "?}" with LanguageTool premium server in French.
- Version 16.0.0 doesn't work with PASSIVE_VOICE
- What is the default value of `LTEX_GLOBAL_STORAGE_PATH`? HOT 3
- language selection via \documentclass[german]{article} and similar
- ltex with html: Within source tag no html check
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ltex-ls.