Thu, Apr 11
Tue, Apr 2
Well, you know what would be next level for a dev? If (s)he clicks on it, the color is copied to the clipboard. We can't use this behavior, because behaviors loose their state in the remarkup cache...
Mon, Apr 1
This should be ready to merge now, if someone wouldn't mind reviewing it.
Mar 26 2024
Mar 25 2024
Mar 19 2024
Mar 15 2024
(I've put a note in Dependencies for now)
Updated Pygments with pip to 2.17.2 und cut the time in half. So yeah, that's already an improvement.
I guess we could also try to cache the individual rendered code-blocks.
Well, good to know that it is not something in the phorge codebase. Our server has pygmentize 2.14.0 - but the server itself is really not the best, so that could be an explanation. Maybe we could make some remarks about performance and keeping the versions fresh on the diviner page...
Mar 14 2024
Update: I've installed pygments (2.15.1), and it took about 3 seconds to render. It takes about 14 seconds here (with pygments 2.3.1).
mm, dumping this file in my dev env renders pretty much immediately; that's a good sign that it's the code blocks, because (1) pygments is known to be slow and (2) I don't have it installed.
I'm quite sure the problem is limited on repeated code blocks.
"slow remarkup" often boils down to 1-2 inefficient regexp in a rule somewhere.
Can reproduce
Mar 9 2024
Feb 29 2024
Added documentation in D25547: Diviner: Improve documentation for remarkup code blocks
Yeah enjoy this feature! Already part of our glorious 2023 Week 32
Hahah I guess I could have tested it first.
I think we already did - @valerio.bozzolan ?
Feb 28 2024
Gotcha. Probably this is generating the attachment transactions but should be "ignored on no effects":
This feature is not complete also for Conpherence AFAIK
Feb 27 2024
Feb 26 2024
Interestingly, I just discovered Wikimedia has a pretty cool project to render math on the server side, by transpiling some js into php:
There is also MathJax, a subset of LaTex that only covers the mathematical notation without the page layout functionality.
Feb 25 2024
I see that it depends on a NodeJS external script (server-side).
This would be useful for discussions about design, specifically I wished for this feature while reviewing D25491: Improve contrast of Links in Dark Mode
Feb 7 2024
Jan 31 2024
Jan 28 2024
Jan 22 2024
Jan 19 2024
Values given in em units may produce unexpected results...