-
Notifications
You must be signed in to change notification settings - Fork 2
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
Suggestion: use another symbol for Mathpad expressions #4
Comments
Thank you for your feedback. Mathpad is leveraging the already existing support for code blocks and inline code that Obsidian provides. Switching to a different syntax would mean to re-do a lot of the extension to the CodeMirror grammar that Obsidian already did. Would that be OK? |
I imagined that there would be a limitation like that. I think codeblocks are actually fine the way they are, since we have to type "mathpad" after the three backticks in order for it to be evaluated (like For inline code, I liked your idea of making it configurable, but I would like to suggest the ability to place something before and after the expression instead of only after it (keeping it inside the backticks). For example: Then these "configurable" characters should be hidden on Live Preview and Reading modes, to show only the expression and the result. Of course I don't know if there are any limitations that make it impossible, so it's just an idea. |
That should be feasible, of course I would add it as an optional configuration, since - at least for me - it is important to be able to insert calculation as simply as possible. |
Mathpad uses the same symbols as the Markdown inline code and code blocks use (the backtick
`
for inline and triple backticks```
for code block) to identify expressions that should be evaluated.The problem is: suppose I want to write an inline code like
x+3==?
, that is NOT a Mathpad expression, and should NOT be rendered to LaTeX or evaluated. I just want to show the code inline.That's impossible, because Mathpad will automatically render it as:
$$x+3=x+3$$
Suggestion: use another symbol for Mathpad expressions instead of the backtick
`
.For example:
@x+3==?@
instead of`x+3==?`
andinstead of using triple backticks
```
The text was updated successfully, but these errors were encountered: