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

The ngx-markdown 12 version did not accurately identify the code, causing the render to flash frequently. #541

Open
Wendy1998 opened this issue Sep 20, 2024 · 0 comments

Comments

@Wendy1998
Copy link

Since angular is version 12, ngx-markdown corresponding to version 12 was used and found to be inaccurate in code recognition.
I use it to recognize and render streaming data from the back end, but sometimes it only recognizes part of the code, resulting in some areas being highlighted.

 constructor(private markdownService: MarkdownService) {}
private setupCustomRenderer() {
        //code
        this.markdownService.renderer.code = (code: string, language: string) => {
            console.log('code', code, language);//The identified code is found to be incomplete
        };
    }

It seems that the NGX-Markdown 14 version does not have this problem, may I ask if there is any patch pack that can temporarily solve it (because the angular version limits me to use a higher version of markdown for the time being)?

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