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

Сut breaks when clicking on the link in the header #575

Open
Weplik opened this issue Jan 29, 2025 · 0 comments
Open

Сut breaks when clicking on the link in the header #575

Weplik opened this issue Jan 29, 2025 · 0 comments

Comments

@Weplik
Copy link

Weplik commented Jan 29, 2025

Hi!

I am using YFmStaticView to display formatted html from markdown (your example in storybook).

When using markdown below, the "cut" breaks after clicking on the link. The problem is that when you click on the "Cut" header, it stops opening and closing content (I attached a screenshot when the "cut" is open, but there is no content).

{% cut "Link [https://ya.ru](https://ya.ru) link" %}

body

{% endcut %}
Image

The problem occurs when the following options are added for transform:

import linkAttributes from 'markdown-it-link-attributes';

...

builder.configureMd(md => md.use(linkAttributes, {
        attrs: {
            target: '_blank',
            rel: 'noopener noreferrer',
        },
    })
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