-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Comment in yaml-codeblock won't generate html #13152
Comments
What exactly do you mean by this. |
I mean it like this: Some text explaining the yaml
```yaml
- name: Copy over new files
run: |
# Whitelist of all publishable wiki articles
cp index.md $content
# more publishable markdown files...
``` When building this, I just get <p>Some text explaining the yaml</p>
e> |
I tried your example, and it renders fine for me (I tested with both |
I looked at the relevant page in your repository: The first line of the file is:
So, despite the hugo/parser/pageparser/pagelexer_intro.go Lines 31 to 32 in a32c889
And when we call hugo/parser/pageparser/pagelexer_intro.go Line 94 in a32c889
And hugo/parser/pageparser/pagelexer.go Line 103 in a32c889
More about summary dividers here: A simple example that reproduces the behavior you are seeing:
Looking at your repository, you need to:
|
Thanks for your detailed answer, @jmooring. It is very helpful! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes, it does.
When using the string:
in a yaml-codeblock, like this
instead of the block an
e>
gets generated. When removing the comment, everything works fine. I also tried different strings with which, it sometimes worked and sometimes not. I cannot guess pattern, when the error occurs.Also there is no special output when building the site. I guess there is something wrong with
goldmark
but I do not fully understand howhugo
usesgoldmark
. So I'm approaching you guys at first.Thanks for your time. I would be happy to provide more information on this issue.
The text was updated successfully, but these errors were encountered: