Skip to content

Instantly share code, notes, and snippets.

View writeblankspace's full-sized avatar

writeblankspace writeblankspace

  • 15:35 (UTC +03:00)
View GitHub Profile
@writeblankspace
writeblankspace / README.md
Created September 2, 2024 17:14
Obsidian single-line and multi-line flashcard styling

This was made specifically for this Obsidian plugin. I will assume you know how to add custom CSS snippets.

The code here is not maintained. I am too lazy.

Usage

The following styles render the content as flashcard content when in Reading Mode. The styling will be similar to a callout's.

Content touches the hashtag:

def progress_bar(current, goal):
""" **Creates a progress bar** \n
current = the progress done \n
goal = the total needed \n"""
""" current is the numerator
goal is the denominator """
# configuration
conf = { # conf[key]
# these will make up the progress bar as strings
# 'c' is for anything completed (aka the green bits)