LiamRiddell / obsidian-solve

An unobtrusive Obsidian plugin that quietly processes equations and patterns in real time
MIT License
72 stars 0 forks source link

[Bug] Additional extra space before result in explicit mode #59

Open Dvornik opened 3 weeks ago

Dvornik commented 3 weeks ago

Describe the bug Additional extra space before result when Explicit mode is ON

To Reproduce Steps to reproduce the behavior:

  1. Turn on Explicit mode
  2. Write 2 + 2 =
  3. Solve adds one extra space before result

Expected behavior No extra space before result

Screenshots image

Obsidian

Thank you very much for this awesome things! I use it every day and I love it!

Dvornik commented 1 week ago

Fixed it with Style Settings plugin:

image
LiamRiddell commented 1 week ago

@Dvornik Sorry for late reply, I have less time to focus on this project due to new role.

I'm glad you solved the problem.

I'd still be keen to look into this but I think it stems from there is a space inserted after the = sign and then as you've correctly pointed out the left margin from the custom styles.

I maybe remove the space after equals so the user can control the margins.

Dvornik commented 1 week ago

I maybe remove the space after equals so the user can control the margins.

Thank you! That would be the best solution. I noticed that with Explicit mode is OFF, there's an extra space before the equals sign here too:

image

Zero left margin from the custom styles can fix this also.