Comments (5)
I get your line of thinking but I don't really think it fits in with the way I see the application evolving long term tbh. I kinda like the idea of being able to specify everything in the markdown of the document with default options as they currently are. The benefit of this would be that the same file should always parse to the same result. At the same time there is something to be said for adding functionality to verify a file parses as you expect to help with debugging!
When you convert the list of question answers to format them for Anki you need to format the as an html list. Remove the <li>
tags in this case would end up just leaving you with a badly formatted HTML list.
This enhancement overall isn't really that complicated to do but I'm not sure when I can actually finish it but should be much quicker then #27. That one will require a bit of refactoring and test updating!
Thanks for you input and I will try and get this one done this weekend when I have some free time!
from org_to_anki.
@sandersantema just an update. Won't make any progress on either issue till next weekend but will finish them then!
from org_to_anki.
What might be a better overall solution (I think at least more versatile) is to break up the commandline tool in a converter and importer, where the converter would output to stdout
and the importer would take input from stdin
allowing for usage of for instance sed
in between. Say for instance you don't want the answer formatted as a bullet point list and ota
would be shorthand for org_to_anki
then the command would be:
ota -o <file> | sed 's/\<li\>//g' | sed 's/\<\/li\>//g' | ota -i
The sed part could probably be done with one command but I hope you get the idea.
from org_to_anki.
No hurry!
from org_to_anki.
I decided to go with list
instead formatting
as it was slightly less generic for the list usecase
I'm already regretting using type
instead of noteType
but would prefer to avoid breaking changes at this point.
closed by #31
from org_to_anki.
Related Issues (20)
- does not support Arabic HOT 5
- Support sync of text files to Anki deck - edits / deletions / new cards HOT 3
- What is the second script? HOT 2
- Auto cloze from a wordlist.txt HOT 3
- How to add an image to Extra field of Cloze? HOT 7
- Support image inline for Emacs
- Support for .pdf not available as answer, rather than only .png (image) HOT 1
- Support for .html not available as answer, rather than only .png HOT 6
- Non-Technical Help Request HOT 10
- Remove usage references to Word in the readme HOT 1
- Investigate issues that causes missing html in bs4 4.9.1
- Lists to Anki issue HOT 3
- long lines in the top level of bullets are truncated before they appear on "Front" in Anki HOT 6
- HTML elements not rendered correctly in question statements HOT 5
- The error was 'list' object has no attribute 'contents' HOT 2
- The error was “list” object has no attribute “contents”
- The error was Line incorrectly processed..
- utf-8' codec can't decode byte 0xca in position 2265: invalid continuation byte
- false-positive alert in the report to the CLI for .org with UUID
- feature suggest, extending org-based Anki import of code snippets
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 org_to_anki.