Code Monkey home page Code Monkey logo

Comments (5)

c-okelly avatar c-okelly commented on May 25, 2024 1

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.

c-okelly avatar c-okelly commented on May 25, 2024 1

@sandersantema just an update. Won't make any progress on either issue till next weekend but will finish them then!

from org_to_anki.

sandersantema avatar sandersantema commented on May 25, 2024

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.

sandersantema avatar sandersantema commented on May 25, 2024

No hurry!

from org_to_anki.

c-okelly avatar c-okelly commented on May 25, 2024

@sandersantema

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)

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.