17 Commits
Author SHA1 Message Date
NotAlexNoyleandClaude Opus 4.8 181cbf79b2 Add GitHub-style syntax highlighting to the code-block preview
The WebKit HTML preview previously rendered fenced code blocks
monochrome. Wire the existing tokenizer into the HTML renderer so code
blocks are highlighted like GitHub, and extend language coverage.

- markdown.c: accumulate each code block's text, tokenize it on block
  leave, and emit <span class="pl-*"> per token with HTML-escaped gaps
  and token text; unknown languages fall back to plain escaped text.
- Add GitHub Primer syntax colors (light/dark) for keywords, constants,
  strings, and comments.
- code_highlight.c: tokenize comments (//, /* */, #), which were
  previously skipped and left uncolored.
- Add languages: javascript, kotlin, and bash (aliases js, kt, sh,
  shell). Bash uses a dedicated scanner whose '#' comments are
  word-position aware so $#, x=$#, and a.com#frag are not comments.
- Create the code_comment tag so the source editor colors comments too.
- README: document the highlighted languages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 15:20:50 -04:00
NotAlexNoyleandClaude Opus 4.8 66cf21ec71 README: drop distro package install and packaging templates sections
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 14:59:19 -04:00
NotAlexNoyleandClaude Opus 4.8 f28b5a8145 Fix packaging CI and polish window UI
- CI: install WebKit dev packages in the deb/rpm jobs so the build links
  against webkit2gtk-4.1 (previously only GTK headers were installed, so
  compilation would have failed). Verified both jobs end-to-end in
  ubuntu:22.04 and fedora:40 containers.
- Server-side window decorations: replace the CSD GtkHeaderBar with a
  plain in-window toolbar so the window manager (e.g. KDE/KWin) draws
  full window controls.
- About popover: link the SeeMD title to the repo and the ViewMD mention
  to upstream; fix the "fork of SeeMD" text back to ViewMD.
- Replace the About text button with an eye-glyph icon button.
- Focus the document on startup instead of the Open toolbar button.
- README: use the assets/seemd.png screenshot and add an eye glyph to the
  title.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 14:55:13 -04:00
NotAlexNoyle 5c4affefbd SeeMD rebrand 2026-07-01 14:33:04 -04:00
NotAlexNoyle e27c392078 ViewMD -> SeeMD 2026-07-01 14:24:11 -04:00
rabfulton effa685762 Merge pull request #1 from FenrirTheGray/fix/reload-file-crash
Fix error when reloading file more than once
0.1.3
2026-04-10 11:28:26 +01:00
Aleksandar Colovic a30ce043f4 Fix crash when reloading file more than once
markyd_app_open_file() invalidates the current path string, so calling
it with the pointer from markyd_app_get_current_path() works the first
time but causes a use-after-free on subsequent reloads. Copy the path
with g_strdup() before passing it to open_file, and free it afterwards.
2026-04-08 18:46:24 +02:00
Robert Fulton 3d36df9847 Update README.md 0.1.2 2026-02-26 02:09:07 +00:00
Robert Fulton 0cce704eec Support hanging indents for list items 2026-02-26 02:06:58 +00:00
Robert Fulton 55eff8c494 Fix for search within tables 2026-02-26 01:50:11 +00:00
Robert Fulton c40a410d7d Add support for local images 2026-02-26 01:18:04 +00:00
Robert Fulton ab0b9b37d7 Add search on document 0.1.1 2026-02-23 17:52:51 +00:00
Robert Fulton 9bfb95e5a7 Update README.md 2026-02-19 11:30:50 +00:00
Robert Fulton 0bf2277f1b Update README.md 0.1.0 2026-02-19 11:15:12 +00:00
Robert Fulton 5f0cb2248a fix desktop entry 2026-02-19 11:06:47 +00:00
Robert Fulton f49a7ed171 Some small fixes 2026-02-19 10:51:23 +00:00
Robert Fulton 6e882c05ab Initial commit for ViewMD 2026-02-19 10:14:50 +00:00