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

remark-captions: Code blocks are not rendering #490

Open
adwinying opened this issue Jun 2, 2023 · 2 comments
Open

remark-captions: Code blocks are not rendering #490

adwinying opened this issue Jun 2, 2023 · 2 comments
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem

Comments

@adwinying
Copy link

Referring to this issue, code blocks are not rendered as the value prop is set when mdast is being generated.

@LikaKavkasidze
Copy link
Member

Thanks for opening an issue, I just looked at it and the behavior seems a bit weird, so I will take time to work on it soon.

@LikaKavkasidze LikaKavkasidze added type/bug This is a problem semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer labels Jun 9, 2023
@adwinying
Copy link
Author

For those looking for a workaround, add the following lines of code as a custom remark plugin:

      () => (tree) => {
        visit(tree, "figure", (figure) => {
          delete figure.value;
        });
      },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem
Projects
None yet
Development

No branches or pull requests

2 participants