Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac-Flath committed Dec 24, 2024
1 parent f03d1d8 commit 8366172
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 51 deletions.
File renamed without changes.
51 changes: 0 additions & 51 deletions nbs/02_franken.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1965,57 +1965,6 @@
" return NotStr(apply_classes(html_content, class_map, class_map_mods))"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9b52bb24",
"metadata": {},
"outputs": [],
"source": [
"%%aip\n",
"\n",
"Improve `franken_class_map` for use with mistletoe. I want it minimal and simple but make really great looking articles"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "b2860bc4",
"metadata": {},
"outputs": [],
"source": [
"franken_class_map = {\n",
" # Headings with vertical rhythm\n",
" 'h1': 'uk-h1 text-4xl font-bold mt-12 mb-6',\n",
" 'h2': 'uk-h2 text-3xl font-bold mt-10 mb-5', \n",
" 'h3': 'uk-h3 text-2xl font-semibold mt-8 mb-4',\n",
" 'h4': 'uk-h4 text-xl font-semibold mt-6 mb-3',\n",
" \n",
" # Body text and links\n",
" 'p': 'text-lg leading-relaxed mb-6',\n",
" 'a': 'uk-link text-primary hover:text-primary-focus underline',\n",
" \n",
" # Lists with proper spacing\n",
" 'ul': 'uk-list uk-list-disc space-y-2 mb-6 ml-6',\n",
" 'ol': 'uk-list uk-list-decimal space-y-2 mb-6 ml-6',\n",
" 'li': 'leading-relaxed',\n",
" \n",
" # Code and quotes\n",
" 'pre': 'bg-base-200 rounded-lg p-4 mb-6 overflow-x-auto',\n",
" 'code': 'uk-codespan font-mono text-sm bg-base-200 rounded px-1',\n",
" 'blockquote': 'uk-blockquote pl-4 border-l-4 border-primary italic mb-6',\n",
" \n",
" # Tables\n",
" 'table': 'uk-table uk-table-divider uk-table-hover uk-table-small w-full mb-6',\n",
" 'th': 'text-left p-2',\n",
" 'td': 'p-2',\n",
" \n",
" # Other elements\n",
" 'hr': 'uk-divider-icon my-8',\n",
" 'img': 'max-w-full h-auto rounded-lg mb-6'\n",
"}"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 8366172

Please sign in to comment.