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

🐞 Bug: Latex not rendered except as top-level item #182

Open
2 tasks done
Maneren opened this issue Oct 14, 2024 · 2 comments
Open
2 tasks done

🐞 Bug: Latex not rendered except as top-level item #182

Maneren opened this issue Oct 14, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Maneren
Copy link

Maneren commented Oct 14, 2024

Before reporting:

  • Ensure that the issue is reproducable on the main branch.
  • Ensure that there isn't an issue on this(either open or closed).

Problem:

Firstly, great plugin. It singlehandedly pushed me to finally ditch paper notebooks and fully switch to markdown notes.

One of the best features for me is the LaTeX rendering, but it reliably renders only as top-level items. Inside text, lists, quotes, tables, etc. it's quite random but usually not working.

I vaguely recall it working fine a week or two back, but I can't pinpoint any specific version or commit. Also, I may be misremembering or had some other plugin enabled, so take it with a grain of salt.

Steps to reproduce the issue:

Markview version: 67b69cd
Tree-sitter parsers are present, since sometimes it works fine.

Two examples from my math notes:

Inline text
image
with this source
image

Blockquote and table
image
with this source
image

Related config:

latex = {                   
  enable = true,            
  inline = {                
    enable = true,          
  },                        
  operators = {             
    enable = true,          
  },                        
  symbols = {               
    enable = true,
	-- symbols not yet in markview          
    overwrite = {           
      dots = "",           
      quad = "  ",          
      [" "] = " ",          
      enspace = " ",        
      thinspace = "",       
      iff = "",            
      leftrightarrows = "",
      to = "",             
      forall = "",         
      emptyset = "",       
      Chi = "Χ",            
      choose = "C",         
      coloneqq = "",       
      E = "E",              
      Var = "Var",          
    },                      
  },                        
}                         

Expected behavior:

Render LaTeX equation everywhere or at least consistently within each given context.

Neovim version:

NVIM v0.10.0 Build type: RelWithDebInfo LuaJIT 2.1.1713484068

@Maneren Maneren added the bug Something isn't working label Oct 14, 2024
@parinchaipunya
Copy link

Confirmed the problem.
The last known working commit is [e2c3e56] on my machine. For now, I suggest sticking to some previous commits first if one needs this feature.

Maneren added a commit to Maneren/astronvim_config that referenced this issue Oct 26, 2024
@Maneren
Copy link
Author

Maneren commented Oct 26, 2024

Thanks, I've pinned it in my config in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants