Giter VIP home page Giter VIP logo

Comments (8)

suvernev-d avatar suvernev-d commented on June 7, 2024 1

Try using custom fonts in CSS to make them look the same on every device.

  1. Download some monospaced font, say, from NerdFonts. I use Iosevka for example.
  2. Place it inside your Anki collection.media folder (Tools > Add-ons > Open add-ons folder (or view files)) with one leading underscore to prevent deletion on sync
  3. Add link to font in CSS and a rule for rendering monospaced stuff:

In your card's CSS:

@font-face { /* Iosevka */
  font-family: Iosevka;
  src: url('_Iosevka_Medium.ttf'); // this file should be in your collection.media folder
}
pre, kbd, tt, var, samp, code{
  font-family:"Iosevka";
}

from anki-auto-markdown.

josh-works avatar josh-works commented on June 7, 2024 1

@gregorrr I'd love to take a stab at fixing this issue, #14, and #20.

Do you have any contribution guidelines, or would you just like a PR? I'll take a stab at getting this fixed, but the more guidelines you have on styling, linting, functionality, etc, the better the inbound PR will conform to your preferences.

Finally, do you know of any guides/resources to get a jump start on anki package development? Discord servers, etc?

from anki-auto-markdown.

josh-works avatar josh-works commented on June 7, 2024 1

@natfarleydev great work w/the PRs!

I'd love to see them get merged, if @gregorrr is down. In a few days I'll run the updated code locally and see how it's working! Thanks a ton!

from anki-auto-markdown.

natfarleydev avatar natfarleydev commented on June 7, 2024

Hey @josh-works, PR #21 should fix #20, feel free to use these changes if it's helpful.

I found very little in terms of documentation for addons in general, but the Anki code was very readable (if a little verbose) in terms of finding out which behaviour needs modifying/extending.

from anki-auto-markdown.

natfarleydev avatar natfarleydev commented on June 7, 2024

@josh-works It looks like @gregorrr isn't active on github at the moment so I've made a fork to maintain bugfixes here: https://github.com/natfarleydev/anki-auto-markdown which links to https://ankiweb.net/shared/info/15061497. Feel free to fix and PR into there for now

Hopefully @gregorrr will come back at some point, but for now I'm happy to maintain the functionality in the fork as I use this plugin multiple times a day and Anki is going through a lot of changes at the moment

from anki-auto-markdown.

josh-works avatar josh-works commented on June 7, 2024

@natfarleydev Thanks so much! I'm following it right now. I just typed a question here, then decided to open it as an issue. Cannot see an "open new issue" so can't open there.

Anyway, do you know how I'd go about using your version of the plugin instead of the "official" version?

I imagine Anki only knows to track @gregorrr's repo, not your fork.

Once you write it up, I'll make a PR w/updates to the README outlining the steps so future folks won't need to ask.

from anki-auto-markdown.

natfarleydev avatar natfarleydev commented on June 7, 2024

I've re-uploaded the plugin here: https://ankiweb.net/shared/info/15061497 (note the 'fix version' at the end of the title, I've purposefully kept everything else as close to the original since I only want to maintain the plugin rather than rewrite). I'll continue to upload to the fix version plugin as needed.

I'll double check the issue tracker on my repo, it won't be much good as a home for fixes if we can't track bugs!

from anki-auto-markdown.

natfarleydev avatar natfarleydev commented on June 7, 2024

@josh-works You should be able to raise issues on my fork now; I'm not fussy about process so feel free to raise as you want.

from anki-auto-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.