"Failed to parse Markdown attributes; you may need to quote the values"

Running hugo v0.119.

    ```xml {title: "XML Example"}
               ^ "Failed to parse Markdown attributes; you may need to quote the values"
    (Body of XML)
    ```

I’m getting this error on all the files where this syntax appears. The error is starting from the “{”.
Any clue what this can be? Cant post the full code. Thankful for any help!

That’s not a valid HTML attribute. title="XML Example" is.

2 Likes

Sure but It’s inside triple back quote. Same for all other errors.

It seems to me that hugo is parsing markdown where it should not. But I can be mistaken since I’m completely fresh and hugo and just landed this project. Other developers have gotten the same errors too but not all of them.

What are you trying to achieve with this {title...} thing then?

If you want to output it verbatim in the code block, it’s at the wrong place. If you want to add a title attribute to the code block, it’s in the wrong format.

2 Likes

You are correct. It seems that a migration from another solution was the source to this error. Thank you so much :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.