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] Snippets aside from mk and dm are not detected. #162

Open
AlphabetsAlphabets opened this issue Jun 26, 2023 · 5 comments
Open

[BUG] Snippets aside from mk and dm are not detected. #162

AlphabetsAlphabets opened this issue Jun 26, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@AlphabetsAlphabets
Copy link

AlphabetsAlphabets commented Jun 26, 2023

Description

Only snippet detected are mk and dm everything else isn't. I only discovered this today.

To Reproduce

  1. Install Obsidian
  2. Install this plugin
  3. Go into options for latex suite
  4. Specify an external snippets file. Use this snippet file.

Expected Behavior

I'll type mk or dm so that the $ will be created. However, when I try to create a matrix with square brackets just by typing bmat inside the $$'s nothing happens. This isn't just for bmat it's for other things like when i type A2 I expect it to become A_{2} but it just stays at A2.

Additional Info

2023-06-26.15-34-01.mp4

EndeavourOS

@AlphabetsAlphabets AlphabetsAlphabets added the bug Something isn't working label Jun 26, 2023
@artisticat1
Copy link
Owner

I'm not able to reproduce this.

  • Are there any errors in the console (Ctrl+Shift+I)?
  • Can you paste your debug info here (Command palette -> Show debug info)?
  • Does the issue occur with previous versions of the plugin?

@AlphabetsAlphabets
Copy link
Author

Hello, it appears the plugin fixed itself as everything is working as intended. If the issue arises again I will re-open this issue but I hope not.

@AlphabetsAlphabets
Copy link
Author

Welp looks like it came back.

Are there any errors in the console (Ctrl+Shift+I)?

Yes. Here is the error.

image

Can you paste your debug info here (Command palette -> Show debug info)?

Here you go

SYSTEM INFO:
	Obsidian version: v1.3.5
	Installer version: v1.3.5
	Operating system: #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 6.3.9-arch1-1
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 1
	Restricted mode: off
	Plugins installed: 15
	Plugins enabled: 15
		1: Advanced Tables v0.18.1
		2: Longform v2.0.3
		3: Note Refactor v1.7.1
		4: Pandoc Plugin v0.4.1
		5: Reset Font Size v1.0.2
		6: Style Settings v1.0.6
		7: Vimrc Support v0.9.0
		8: Dataview v0.5.56
		9: Templater v1.16.0
		10: Excalidraw v1.9.6
		11: Periodic Notes v0.0.17
		12: Imgur Plugin v2.2.1
		13: Mermaid Tools v0.2.1
		14: Relative Line Numbers v2.0.1
		15: Latex Suite v1.7.3

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Does the issue occur with previous versions of the plugin?

No. This has never happened before.

@AlphabetsAlphabets
Copy link
Author

Looks like I figured out the issue. There are two sections in the document the first half before <WHAT> is in the body. The other section is after. All the snippets load properly before <WHAT> and none work aside from mk and dm after <WHAT>. I like to use <WHAT> as a placeholder for missing information. It also looks like if I close the <WHAT> tag all snippets work properly. So guess it's an issue on my part.

@zcysxy
Copy link

zcysxy commented Jul 22, 2023

Looks like I figured out the issue. There are two sections in the document the first half before <WHAT> is in the body. The other section is after. All the snippets load properly before <WHAT> and none work aside from mk and dm after <WHAT>. I like to use <WHAT> as a placeholder for missing information. It also looks like if I close the <WHAT> tag all snippets work properly. So guess it's an issue on my part.

Yeah everything after <WHAT> and before the closing tag is treated as HTML but not Markdown. If you do not intend to insert HTML, escape it: \<WHAT>, or using a self-closing tag <WHAT/>

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