Giter VIP home page Giter VIP logo

Comments (5)

tricktux avatar tricktux commented on June 24, 2024 2

@Steve2955 Thank you much for considering the requests! Really looking forward to that code highlight!

from md2apkg.

RvNovae avatar RvNovae commented on June 24, 2024 1

Perhaps we could use something like https://highlightjs.org/ for syntax highlighting?

  1. Search for code tags in HTML
  2. run that through highlightJS
  3. profit?

from md2apkg.

RvNovae avatar RvNovae commented on June 24, 2024 1

highlightjs is what I had in my mind as well. It's also the recommended way by markdown-it.

@RvNovae Do you might want to implement syntax highlighting? I already did some work on the "extending card fronts"-feature. A PR should be ready for review this evening.

Yeah sounds good, I can take a look at it over the weekend.

from md2apkg.

Steve2955 avatar Steve2955 commented on June 24, 2024

Thank you very much for those kind words. The ability to extend card fronts is on the top of my list as well. However, I intend to use an html-comment syntax for splitting card back and front by default (something like <!-- md2anki split -->). Considering your use case I will add optional compatibility with the mdanki-%-syntax.

I will be working on this as well as #15 on the weekend. I thought about syntax-highlighting for code blocks as well, but that might take some more time.

from md2apkg.

Steve2955 avatar Steve2955 commented on June 24, 2024

highlightjs is what I had in my mind as well. It's also the recommended way by markdown-it.

@RvNovae Do you might want to implement syntax highlighting? I already did some work on the "extending card fronts"-feature. A PR should be ready for review this evening.

from md2apkg.

Related Issues (16)

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.