-
Notifications
You must be signed in to change notification settings - Fork 861
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
YAML document separator in indented triple-quote blocks gets misinterpreted #679
Comments
Here's a dirty hack: insert a zero-width space somewhere inside (or around) that You can copy the char from here: https://qwerty.dev/whitespace/ In your fiddle that does seem to do the trick, and you no longer need to append |
Unfortunately, that doesn't work for my use-case; here is why: My goal is to include YAML snippets in presentations (specifically, training materials) so that people can copy-paste them. If I put a zero-width space, it will be copy-pasted as well, and YAML parsers will fail on it, with very weird error messages. (Typically, they'll say that they couldn't find an expected colon, because the I'll keep looking! :) |
Ah, that makes sense. Sorry that I don't have the time now to help with this. |
Hi @tripu Would you mind if I try to prepare some solution for that problem? |
I'm just a contributor here. Of course you're welcome to submit a PR! 👍 Anyway, note that I'm working on #680, which involves upgrading I did a quick test here pasting the MD code in your JSFiddle, and it looks fine. So, perhaps you prefer just to wait until I finish with my changes… |
Ok, it looks like upgrading I will wait for you to complete and if the problem persist I will take a look on it. Thanks! |
Hi @tripu any news? :) How it is going with update? |
@lukaszpiotrluczak, since you asked… I could use some help 😇 I have made several upgrades and changes on my own fork; see the diff here: develop...tripu:remark:develop Among others, I upgraded Everything seems to work fine after my changes, except for the few tests about highlighting. Specifically: I haven't understood yet what's the root of the issue. Care to review? /cc @gnab, in case you have some minutes to spare! |
Hi!
Here is what I do:
I put a YAML document separator (
---
) within an indented triple-quote:Here is what I'm expecting:
something looking like this
Here is what I see instead:
The
---
disappears, the triple quote doesn't seem to be interpreted, and there is an horizontal line in the middle.it looks like this
```yaml key1: value1
key2: value2 ```
Extra information:
Just in case GitHub formatting isn't super clear, here is a jsfiddle exhibiting the issue:
https://jsfiddle.net/Lhwucmkb/3/
I haven't dived in the code yet so no idea how gnarly this is going to be 😅
The text was updated successfully, but these errors were encountered: