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

Format (escape) markdown #10

Open
fuhrmanator opened this issue Dec 11, 2021 · 1 comment
Open

Format (escape) markdown #10

fuhrmanator opened this issue Dec 11, 2021 · 1 comment

Comments

@fuhrmanator
Copy link

Similar to #9, using multiline markdown inside GIFT requires proper formatting (escaping). For example, nested lists in markdown are sensitive to line breaks and indentation, but Moodle import of GIFT removes duplicate spaces unless the first character of a line is a non-breaking space (the solution in #9 solves this for code fences).

So, it would be nice to have a feature to escape markdown (which I think is a more general case of #9).

@fuhrmanator
Copy link
Author

I explored more, and added a blog post of my findings. https://fuhrmanator.github.io/2021/12/15/markdown-in-gift.html

Code blocks seem to be the most tedious because they have control characters and indentation requiring a non-breaking space.

But markdown is also tricky to embed because of line breaks (\n). My experiments with nested lists showed they don't require any non-breaking spaces, but Moodle does have some other quirks like not understanding - as a bulleted item element -- it must be a *.

A feature that converts markdown for GIFT (that would support code blocks indicated by back ticks and apply the non-breaking space for indentation) would be the nicest, but I think it's pretty complicated.

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

1 participant