add_header_obsidian.py 스크립트를 통해 만들어진 md 파일에 다음과 같이 pandoc을 실행해서 만들어진 html 파일에서 실행한다. pandoc merged.md -o merged.html --no-highlight -f commonmark_x+hard_line_breaks --wrap=preserve
✓ Published0🌍 Public
Aanemochore
Last edited Sep 4, 2024
Created on Sep 4, 2024
This example uses a JavaScript bookmarklet to restyle Pandoc-generated HTML files from Obsidian markdown. It assigns custom CSS classes to distinguish terminal blocks, paragraph code, and inline code, then saves the modified document as a local file using the DOM `outerHTML` property and a data URI link. The script targets specific elements via `querySelectorAll`, setting attributes like `custom-style` to control font and background colors. It relies on vanilla DOM APIs rather than visualization libraries, processing the rendered output from `pandoc merged.md -o merged.html --no-highlight`.
AI-generated description