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

Embedded reference doesn't work when the section has parenthesis #33

Open
aadimator opened this issue Aug 4, 2021 · 0 comments
Open

Comments

@aadimator
Copy link

First of all, thanks for such an amazing tool. This has been really helpful for me.

One problem I encountered is that when an embedded reference section has parenthesis in the heading, it is unable to find that.
image
In this image, we can see that the tool works perfectly fine for the above embed, but the second one results in a full-page embed.

After a lot of debugging (A LOT, especially as I have never coded in Rust) , println!("{} : {}", section.to_lowercase(), cowstr.to_string().to_lowercase()); results in the follwoing output.
image
We can see that section ignores the parenthesis, while cowstr doesn't.

For now, I have resorted to removing the parenthesis from the reference heading. I just wanted to bring this to your attention.

Thanks and regards.

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