mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 08:27:04 +00:00
Replaces the two forked cached parsers (amethyst CachedRichTextParser on android.util.LruCache + desktop DesktopCachedRichTextParser on ConcurrentLruCache with a naive isMarkdown) with one shared object in commons/jvmAndroid/richtext, built on quartz ConcurrentLruCache and keeping amethyst's CommonMark-aware computeIsMarkdown and content-addressed key (content+tags+callbackUri+authorPubKey). - Add ConcurrentLruCache.trimToSize(maxItems) (+ tests) for the onTrimMemory path. - Repoint all amethyst callers (incl. the markdown unit test) and both desktop callers; delete both forks. Verified: :commons JVM, :desktopApp, :amethyst play debug + unit tests compile. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LUiGxXMbjVmgspa1X15o1V