Comments (8)
Try using custom fonts in CSS to make them look the same on every device.
- Download some monospaced font, say, from NerdFonts. I use
Iosevka
for example. - 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 - 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.
@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.
@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.
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.
@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.
@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.
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.
@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)
- Provide an easy option to change the pygments style
- Code highlighting seems to be broken after latest update 20190613 HOT 4
- Can't insert picture HOT 6
- Changes made on mobile are lost on edit :( HOT 3
- Code block on dark mode is weird (macOS and iOS) HOT 3
- Math is not support? HOT 2
- Exception with Cyrillic characters in URL HOT 1
- The add-ons doesn't supprt newline when the code very long?
- Converting to markdown makes edit text unreadable in Night Mode (Anki 2.1.26) HOT 1
- Anki Error: Caught exception HOT 4
- Code blocks are centered in study mode HOT 3
- Error in Anki 2.1.44 when converting from Markdown HOT 1
- Throwing Error HOT 2
- Issue with converting to markdown HOT 1
- Auto markdown crashes sometimes HOT 2
- Issue after adding a card HOT 7
- Maybe add a suitable license HOT 1
- Provide installation instructions for using the latest master-branch version HOT 2
- Prevent editing of generated html through buttons
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki-auto-markdown.