Showing most recent likes:
- 08/11/2018 mwang25:238 How to Worry Less about Money
Escape various characters for JSON dumps, e.g. "double quotes"
double quotes in "summary"
Tags: test card
Test double quotes in various fields, such as "detailed_notes". JSON text dump uses double quotes for delimiters.
According to freeformatter.com, backspace, formfeed, newline, carriage return, tab, double quotes, and backslash need to be escaped.
Here is a backslash for you \
Single quote should be OK '
See tutorial at bogotobogo for how to parse JSON in python.
---End of card___
Minimal Test Card (only title)
Tags: test card, bug report
I've seen a few cases where adding a card with most fields left blank resulted in an exception. Error message says something about variable t undefined. But I was not able to reproduce it. Leaving this card here as a reminder.
This card verifies unicode characters are supported in the title, author, source, tags, and notes fields. The weird single quotes around the word ikigai are not the standard ascii single quote, they are unicode characters.
Authors: test ignore author ept ‘Ikigai’ is
Source: test ignore source ept ‘Ikigai’ is
Published: December 2017
Tags: synapcards tutorials, synapcards tips, synapcards formatting, test ignore ept ‘Ikigai’ is
Unicode in the detailed notes section is allowed. Seems to be related to the call to Jinja2.markup() which is needed to pass raw html from the backend to Jinja. Markup is called for the title and detailed notes section, but the unicode issue only comes up in the title section. All other text sections can handle unicode.
Test ignore: ept ‘Ikigai’ is