Giter Site home page Giter Site logo

Comments (5)

rich-saul avatar rich-saul commented on May 21, 2024

I have the same issue using this form as well:

<markdown> ```typescript {{ base31x }} ``` </markdown>

And just for clarity, I think it must be a long-standing issue, because I had the same issue with ng-markdown-to-html. I upgraded to ngx-markdown hoping to eliminate the problem.

from ngx-markdown.

jfcere avatar jfcere commented on May 21, 2024

Hi @rich-saul,

Thanks for reporting the issue, I was not aware of this problem before today.
I'll have to investigate and come back to you.

from ngx-markdown.

rich-saul avatar rich-saul commented on May 21, 2024

I'm not certain, this may be something to do with prismjs, and not specifically ngx-markdown. I followed prismjs' install instructions to use it directly, and I get the same effect bypassing ngx-markdown. I'm using the following markup for prismjs:

<pre> <code class="language-typescript"> {{ base31x }} </code> </pre>

I see the same flash from highlighted back to unhighlighted.

If you can possibly confirm that you're not having this issue with prismjs, I'll close this issue and figure out what's wrong with my config.

from ngx-markdown.

jfcere avatar jfcere commented on May 21, 2024

@rich-saul it does not seems to be an issue with ngx-markdown because the plunker example uses typescript highlight and works fine.

Could it be related to the use of ngx-clipboard? I would suggest trying an example without it to see if it affects syntax highlight or not.

If you have an available repository I can look into that would be helpful as well.

from ngx-markdown.

jfcere avatar jfcere commented on May 21, 2024

Closing the issue. If there is any new development or anything don't hesitate.

from ngx-markdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.