33 7 33 Sign in to rate

Auto Markdown

0.85MB. Updated 2019-06-18. Only supports Anki 2.1.x.

The author has shared 1 other item(s).

Description

Note: a lot of the other functionality provided by Power Format Pack is available between Automatic mode To indicate that a field should be automatically converted to and from HTML when losing and gaining focus, go to Tools -> Manage Note Types -> Fields for the note type in question and click the checkbox: Automatic mode demo: Manual mode In this mode, you toggle between Markdown and HTML using the button or its shortcut. The shortcut defaults to Ctrl + M and can be changed in the configuration. Manual mode demo: HISTORY 18/06/19 - fix automatic mode error

- fix automatic mode error 30/04/19 - prevent editing of generated HTML

- prevent editing of generated HTML 17/04/19 - fix empty markdown issue

- fix empty markdown issue 03/11/18 - add fix for nested lists

- add fix for nested lists 01/11/18 - initial release This add-on was developed to bring the Markdown functionality provided by Power Format Pack to Anki 2.1. It is not a port of Power Format Pack, nor is it backwards compatible with fields generated by Power Format Pack.a lot of the other functionality provided by Power Format Pack is available between Mini Format Pack Add Table , and, Add Hyperlink . See github.com to contribute. There are two ways to use this add-on: automatic mode and manual mode. Editing of the generated HTML is prevented in both cases.To indicate that a field should be automatically converted to and from HTML when losing and gaining focus, go to Tools -> Manage Note Types -> Fields for the note type in question and click the checkbox:In this mode, you toggle between Markdown and HTML using the button or its shortcut. The shortcut defaults to Ctrl + M and can be changed in the configuration.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into Anki 2.1:

1030875226

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons

Reviews

This is a nice add-on. But when I was trying to edit the fields of a deck, an error was generated:

Caught exception:

Traceback (most recent call last):

File "aqt/webview.py", line 493, in handler

File "aqt/editor.py", line 481, in <lambda>

File "aqt/editor.py", line 352, in _onFields

File "/Users/…/Library/Application Support/Anki2/addons21/1030875226/fields.py", line 18, in fieldDialog__init__

self.model = note.model()



A possible fix can be found [here](https://github.com/gregorrr/anki-auto-markdown/issues/22). I hope this can be of some help.

Error

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.

If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.

When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.

Debug info:

Anki 2.1.30 (06a69c25) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1

Platform: Windows 10

Flags: frz=True ao=True sv=1

Add-ons, last update check: 2020-08-26 17:26:20



Caught exception:

Traceback (most recent call last):

File "aqt\webview.py", line 493, in handler

File "aqt\editor.py", line 485, in <lambda>

File "aqt\editor.py", line 351, in _onFields

File "C:\Users\Shishir Priyadarisi\AppData\Roaming\Anki2\addons21\1030875226\fields.py", line 18, in fieldDialog__init__

self.model = note.model()

AttributeError: 'dict' object has no attribute 'model'

First of all good job to the creator, it seems to work well. I however won't be using it because it adds lots of blank lines between blocks. E.g. If you have some text then a list, instead of about half a line gap between blocks, there is a full line gap. Makes questions very spaced out. I decided not to use it after trying it out, I rather put in the effort to manually tweak the HTML. Really wanted to like it as I love markdown and use it alot. Was hoping I could just style away these problems, but with a beauty like this added to your question: <p data-original-markdown="YE5hbWVgICoqdGhlKiogZm9sbG93aW5nOjxkaXY+Jm5ic3A7ICZuYnNwOyZuYnNwOzwvZGl2PjxkaXY+MTIzNDEzNDMxMjQzNDxicj48L2Rpdj48ZGl2PnZzPGJyPjwvZGl2PjxkaXY+Jm5ic3A7ICZuYnNwOzwvZGl2PjxkaXY+Jm5ic3A7Zm9vID0gYXNkZiBzZGthZmxrZHNhZjxicj48L2Rpdj48ZGl2Pjxicj48ZGl2PjxkaXY+MS4gTW9vIENvd3M8L2Rpdj48ZGl2PjIuIFllcyBQbGVhc2U8L2Rpdj48L2Rpdj48L2Rpdj48ZGl2Pjxicj48L2Rpdj4="> It looks like to me something unique is being encoded into each question. Instead of making your deck leaner, you making it more verbose and take up more size, and more messy behind the scenes. I was expecting a container like <div class="auto-markdown">, then again I dont know the implementation details, and I am sure the plug developer has good reasons why he had to go that route. Cheers! PS sorry for thumbs down, I dont want to mark it as bad, just not suitable for me.

works great and the auto focus is a nice touch to preview quickly

Thank you for this add on; unfortunately, there is no table support as far as I can tell. In another comment you reference the Add Table add on, but this is a one time thing that doesn't allow dynamic editing of the markdown.

awesome!!

Thank you for creating this add-on. It helps so much when creating card and notes.

This makes Anki feel 10x more modern. No more typing raw html! Thanks so much.

great, the auto convert is nice for markdown user

No highlight for python and cpp

Works for me.

I've wanted this for so long!

code snippets look better in night mode during reviews when I add this to the styling



.nightMode .codehilite {

background-color: #2f2f31 !important;

}



.nightMode .linenodiv {

background-color: #2f2f31 !important;

}

Nice and good to use.

Is it able to work with cloze in code block and images?

Because not always but sometimes it makes cloze as text not cloze.

And Images doesn't convert either.

Makes formatting much faster without having to rely on the mouse! Works well with MathJax if you escape everything twice, but still has issues with uploading images.

Great add-on for rapidly adding pre-formatted cards.



Few issues are:

- not supporting CSS classes for pygments-formatted code, which mess with night mode;

- poor tables support.

Really helpful tool! I could copy my Markdown Note to Anki without any further actions.

Great and easy-to-use addon! Only problem is that when toggling on the Markdown, it makes my pasted images disappear

I think this is a really great idea! 👌

Speeds up card-creation a lot and trains markdown syntax at the same time! Many thanks!!

Super useful! Thank you!

i not sure if it support latex equation. if it have this function. please tell my how to write latex euqation

wonderful!!!

Comment from author Thanks for bring this to my attention! That's my fault for omitting the table extension. I'll update the add-on asap. Really want to like this but it appears their is no support for tables. Have tried markdown table syntax, the Power Format pack syntax and html table syntax. Markdown / Power Format syntax don't work at all and it appears the HTML table syntax is overwritten completely by this plugin so their is no support at all :(

Thank you, Really great.

excellent！but，some style like “paraiso-light” doesn't work well,it can't bold code,otherwise,can you add "solarized-dark/light" style？

Effective, easy to use, and highly recommended!

It's a bit unfortunate that the default manual shortcut (ctrl+M) is also used for mathjax inlining, but it's changeable, and it works fine.

Working nicely for me so far on Linux (Kubuntu 18.04). (For those who might be wondering, you just have to add an extra escape character to your MathJax delimiters before triggering Markdown rendering for the MathJax to coexist with the Markdown on the same card -- i.e. use \\( and \\) as your raw-text delimiters rather than \( and \). And if you're using Cloze cards, be sure that you add the clozure on the Markdown-formatted text (sp?) *after* the Markdown has been rendered, not before.)

Please update for night mode and macOS Catalina.



I lost my time. Comment from author Hey, it would be great if you could be more constructive with your feedback. You didn't find it useful or a bug prevented you from using it? Cheers Completely useless.I lost my time.

Great way to use Markdown in Anki app.

Comment from author Hey, can you expand on this a little? Do you mean that you would like an option for all fields to be auto markdown by default? If possible, it would be great if you could raise it as an issue on GitHub. possible to trigger the auto markdown to all the fields?

Can't use Anki without this addon. Make life a tad easier

It works as intended

Very useful, exactly what I was searching for

It's a good replacement for the old Power Tools plugin.

Works well, thanks.

Thank you very much for this addon. Great support.

https://anki.tenderapp.com/discussions/add-ons/32019-broken-auto-markdown-addon/

Very useful

Thanks