Although the notes feature recently implemented is very useful, having only plain text can make it difficult to put anything meaningful in the notes. It would be very useful to even just have bold text in the notes.
But now, you can!
This script gives you all of the power of markdown in your notes. For a reference, see here for a full reference of the syntax. Markdown allows you to make text bold, italic, insert links and insert pictures, all into notes.
When you edit a script, use some of the markup syntax listed below. When you save the comment, it will be rendered as HTML. Currently this works in reviews and on the individual item pages.
Markup Summary
The following is a summary of the markup you can use within notes.
Although there is more markup within Markdown, newlines are not allowed in notes, so you can’t use most of it.
Custom Markdown
In addition to this, I have included the ability to mark various parts of the text as kanji/vocab/radical/reading, just like during reviews and on item detail pages. They are as follows:
#kan#Kanji#/kan# → Kanji, but will be pink.
#rad#Radical#/rad# → Radical, but will be blue.
#voc#Vocabulary#/voc# → Vocabulary, but will be purple.
#read#Reading#/read# → Reading, but will be black.
When enabled, all my line breaks vanish and it mushes the lines together.
Do I need to use some type of code to insert line breaks when this is enabled?
As a demonstration, if I were to write the above, in its current format into the user note section, it would look like this:
This script is causing a little problem now.When enabled, all my line breaks vanish and it mushes the lines together.Do I need to use some type of code to insert line breaks when this is enabled?