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

zine v0.13.0 reports error for basic quote block #209

Open
zhongsp opened this issue Mar 20, 2023 · 2 comments
Open

zine v0.13.0 reports error for basic quote block #209

zhongsp opened this issue Mar 20, 2023 · 2 comments

Comments

@zhongsp
Copy link

zhongsp commented Mar 20, 2023

I guess it's a regression issue, because my code works months ago, but fails after installing zine v0.13.0.


Installed the latest Zine lib:

$ cargo install zine
    Updating crates.io index
     Ignored package `zine v0.13.0` is already installed, use --force to override

Given a basic quote block from official doc:

```quote
author = "x"
bio = "y"
content = "z"

Run zine serve, an error occurred:

$ zine serve
listening on http://127.0.0.1:3000
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Parse quote block error: missing field `content` at line 1 column 1', C:\Users\xxx\.cargo\registry\src\github.com-1ecc6299db9ec823\zine-0.13.0\src\code_blocks\mod.rs:92:53
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Watch build error: task 10 panicked

If remove the quote block it works again.

@Folyd
Copy link
Member

Folyd commented Mar 20, 2023

That is weird, did you set a content?

missing field `content` at line 1 column 1

@zhongsp
Copy link
Author

zhongsp commented Mar 21, 2023

I'm sure the format is correct and has a content field as described in issue description.

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