Commit graph

6 commits

Author SHA1 Message Date
Andros Fenollosa
49f9e1d45f Fix source block rendering in preview cards
Source blocks (#+BEGIN_SRC / #+END_SRC) were not rendering correctly
in preview cards. The content was being displayed as raw Org Mode syntax
instead of formatted code blocks.

This fix:
- Detects source blocks using regex pattern matching
- Extracts code content and language identifier
- HTML-escapes code content to prevent XSS
- Replaces blocks with placeholders before other formatting
- Restores blocks as styled <pre><code> elements after line break conversion

Fixes issue where comments and code in source blocks were invisible
in share preview links.
2025-11-01 11:40:50 +01:00
Andros Fenollosa
c24223c301 Added screenshot and mood 2025-09-15 08:45:24 +02:00
Andros Fenollosa
fd846314c4 Added README 2025-09-15 08:36:30 +02:00
Andros Fenollosa
028423e123 Format 2025-09-15 08:23:19 +02:00
AdsanTheGreat
f8e0b2fbec Add OGP preview metadata 2025-09-15 01:55:08 +02:00
Andros Fenollosa
5e70af512a First commit 2025-09-14 10:36:19 +02:00