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

Inline code support in the editor? #965

Open
lf- opened this issue Oct 4, 2020 · 2 comments
Open

Inline code support in the editor? #965

lf- opened this issue Oct 4, 2020 · 2 comments

Comments

@lf-
Copy link

lf- commented Oct 4, 2020

Hi!

In a math course, it's often nice to be able to type LaTeX suggestions in the box, but it's very unclear whether these get rendered (sort of losing their purpose): when I typed in $ ... $, to my surprise, when viewing my comparisons later, it ended up rendered with math mode in MathJaX. It would be nice to be able to see how this gets rendered before submitting comparisons, and also to be able to force it to not render by putting the suggestion in inline code.

This was observed on the live UBC site.

@kitsook
Copy link
Contributor

kitsook commented Oct 5, 2020

Thanks for your suggestions. The editor itself is already in WYSIWYG mode. The issue is with the embedded latex code. Especially when the code fragment is pasted into the editor (i.e. no paragraph breaks between lines). This may confuse the MathJax renderer.

When entering code, consider to use the code snippet formatter:
image

If you cannot see the language you are using (e.g. TeX), just leave the Language selection blank. e.g.
image

Result:
image

Hope this helps.

@lf-
Copy link
Author

lf- commented Oct 5, 2020

Yeah, I found that button, but it would be good to have inline code so I can include code within my prose rather than having to make it a separate paragraph, especially if my code is this long, which it often is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants