Comments (8)
Fixed
from ankdown.
Hi, I just tested adding image but failed. Is this fixed in the current pip installed version? I'm using version 0.5.2
from ankdown.
Can you give more details about the failure? (yes, this should be fixed in the current pip version)
from ankdown.
I can confirm, that the image import does not seem to work.
I am using the following markdown with the picture in the same folder as the md-file:
# shows the picture in my editor (vscode)
Expected Value of (f(x))
%
[\mathbb{E}[f(x)] = \sum_x p(x)f(x)]
%
math, probability
When looking at the HTML of the first page I see:
Expected Value of \(f(x)\)
Replacing the relative path does not seem to change anything.
Is there maybe a minimum working example with a picture?
from ankdown.
@LuccaHellriegel Weirdly, this seems to happen to me when I first import the package, but then if I restart Anki the image shows up properly. Can you confirm that this doesn't happen for you? It's a pretty annoying workaround, but I'm not sufficiently aware of Anki / genanki's internals to fix the problem.
from ankdown.
this might be related to kerrickstaley/genanki#17
from ankdown.
@benwr After restarting Anki, the image shows up, thanks. If I update the card, I also have to restart Anki. But thats not a big deal, but might deserve a mention somewhere in the readme. Anyway, thanks for your help.
from ankdown.
When putting images in subfolders an error occurs:
Traceback (most recent call last):
File "c:\Users\Philip\Documents\GitHub\ankdown\ankdown\ankdown.py", line 389, in main
cards_to_apkg(card_iterator, pkg_arg)
File "c:\Users\Philip\Documents\GitHub\ankdown\ankdown\ankdown.py", line 343, in cards_to_apkg
copyfile(abspath, newpath) # This is inefficient but definitely works on all platforms.
File "C:\Python36\lib\shutil.py", line 121, in copyfile
with open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'assets/images/philly-magic-garden.jpg'
Maybe we have to create the folder before putting the image there with copyfile(abspath, newpath)
.
Or change the newpath
variable.
from ankdown.
Related Issues (20)
- (Possible) Bug: Ankdown adds <p></p> to the first and second field HOT 2
- Cloze support HOT 3
- Option to change math separators HOT 4
- Configuration file
- PyYAML warnings are annoying
- Cannot import the package in Anki after running Ankdown with method A HOT 3
- README clarification
- Merge Ankidown and Ankdown HOT 2
- UnicodeDecodeError HOT 1
- Feature Request: Github flavored markdown HOT 4
- Images in Subfolders
- Reloading decks overwrites css changes HOT 1
- Order of processed markdown files seems random HOT 1
- Installation instructions failing
- Images HOT 2
- Methods of correctly preserving card identity HOT 3
- Can i create deck/card by using visual studio code with markdown plugin? HOT 2
- Switch to MathJax or KaTeX HOT 1
- Improvement: Text after % field seperator HOT 2
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 ankdown.