Page MenuHomePhorge

RemarkupProject
ActivePublic

Recent Activity

Fri, Oct 25

aklapper added a comment to T15371: RuntimeException in preg_replace_callback: Text disappears due to Remarkup parsing.

This exception happens once $rule in the loop foreach ($this->getMarkupRules() as $rule) in PhutilRemarkupBlockRule::applyRules($text) becomes ProjectRemarkupRule. That's where it blows up.

Fri, Oct 25, 10:19 · Bug Reports, Remarkup, Affects-Wikimedia

Sep 16 2024

valerio.bozzolan added a comment to T15075: Add support for @link in diviner.

Taking the best from the two: what about assuming a default @link /book/group/best-document-ever-about-link - but still allowing custom @link to allow easy migrations?

Sep 16 2024, 14:45 · Diviner, Remarkup

Aug 5 2024

aklapper added a comment to T15371: RuntimeException in preg_replace_callback: Text disappears due to Remarkup parsing.

This is an issue in https://we.phorge.it/source/phorge/browse/master/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php . In getObjectEmbedPattern(), preg_quote($prefix) returns \# and the method finally returns (\B{\#([^.\s?!,:;{}#\(\)"'\*/~]+(?:[^\s?!,:;{}#\(\)"'\*/~]*[^.\s?!,:;{}#\(\)"'\*/~]+)*)([,\s](?:[^}\\]|\\.)*)?}\B)u.
Within apply($text), $text becomes null after that first preg_replace_callback, so the second call barks.

Aug 5 2024, 12:44 · Bug Reports, Remarkup, Affects-Wikimedia

Aug 4 2024

avivey raised the priority of T15401: Make the Remarkup Help Page Extensible from Wishlist to Low.
Aug 4 2024, 07:54 · Documentation, Remarkup

Jul 29 2024

valerio.bozzolan closed T15161: Internal resources should avoid to become external links, as default as Resolved by committing rP349f006904fa: Remarkup: make less internal links open in new tabs.
Jul 29 2024, 10:42 · User-valerio.bozzolan, Discussion Needed, Remarkup

Jul 1 2024

valerio.bozzolan removed a revision from T15106: "Upload file" in remarkup text fields should attach by default : D25710: [STUB] Fix missing file attachment in Conpherence.
Jul 1 2024, 12:14 · Files, Remarkup
valerio.bozzolan added a revision to T15106: "Upload file" in remarkup text fields should attach by default : D25710: [STUB] Fix missing file attachment in Conpherence.
Jul 1 2024, 12:07 · Files, Remarkup
valerio.bozzolan added a revision to T15106: "Upload file" in remarkup text fields should attach by default : D25709: Fix missing file attachment in Conpherence.
Jul 1 2024, 11:58 · Files, Remarkup
valerio.bozzolan updated the task description for T15744: Render html color codes in remarkup.
Jul 1 2024, 07:00 · Discussion Needed, Remarkup
valerio.bozzolan added a comment to T15744: Render html color codes in remarkup.

I think GitHub allows that syntax only in comments 🤔

Jul 1 2024, 06:50 · Discussion Needed, Remarkup
20after4 added a comment to T15744: Render html color codes in remarkup.

I was unaware of `#0969DA` syntax from github/gitlab.

Jul 1 2024, 02:55 · Discussion Needed, Remarkup
20after4 added a comment to T15744: Render html color codes in remarkup.

I was unaware of #0969DA syntax from github/gitlab. I'm not sure if I like that syntax better than {} but I am generally in favor of using the same syntax as other systems in order to converge towards defacto standardization.

Jul 1 2024, 02:46 · Discussion Needed, Remarkup

Jun 30 2024

valerio.bozzolan added a comment to T15744: Render html color codes in remarkup.

Thanks again @20after4 for the efforts.

Jun 30 2024, 13:23 · Discussion Needed, Remarkup
valerio.bozzolan added a project to T15744: Render html color codes in remarkup: Discussion Needed.
Jun 30 2024, 13:14 · Discussion Needed, Remarkup
valerio.bozzolan merged T15871: Remarkup rule to show colors into T15744: Render html color codes in remarkup.
Jun 30 2024, 13:12 · Discussion Needed, Remarkup
valerio.bozzolan updated the task description for T15744: Render html color codes in remarkup.
Jun 30 2024, 13:12 · Discussion Needed, Remarkup

Jun 29 2024

mturdus added a revision to T15106: "Upload file" in remarkup text fields should attach by default : D25705: Fix missing file attachment in Phriction.
Jun 29 2024, 18:11 · Files, Remarkup

Jun 27 2024

avivey reopened T15401: Make the Remarkup Help Page Extensible as "Open".

(re-opening, there's more work left here)

Jun 27 2024, 06:27 · Documentation, Remarkup

Jun 26 2024

mturdus closed T15401: Make the Remarkup Help Page Extensible as Resolved by committing rPf52bc073216e: Make the Remarkup Help Page Extensible.
Jun 26 2024, 20:11 · Documentation, Remarkup

Jun 23 2024

mturdus added a revision to T15401: Make the Remarkup Help Page Extensible: D25698: Make the Remarkup Help Page Extensible.
Jun 23 2024, 20:10 · Documentation, Remarkup

May 2 2024

valerio.bozzolan added a comment to T15643: Support marking text with <ins> in Remarkup.

To implement this, you may want to start from this 🌈

May 2 2024, 18:09 · Feature Requests, Remarkup
valerio.bozzolan added a comment to T15744: Render html color codes in remarkup.

Anyway, even with this fix, for some reasons I can't still use this feature with a comment like {#0000ff} in my local installation 🤔 I'm confused since the unit test works.

May 2 2024, 10:34 · Discussion Needed, Remarkup
zajdee added a comment to T15744: Render html color codes in remarkup.

@valerio.bozzolan yes, just now. I have only realized that there is a fix already after opening the ticket raised as a concern. Hadn't checked this in the past few days, so here I am, finally with my account approved and the issue is fixed. Thank you. :)

May 2 2024, 08:56 · Discussion Needed, Remarkup
valerio.bozzolan added a comment to T15744: Render html color codes in remarkup.

@zajdee have you already tried to update to latest master? After 6ab2b56a1a4a6 I mean. Thanks for this confirmation

May 2 2024, 08:54 · Discussion Needed, Remarkup
zajdee added a comment to T15744: Render html color codes in remarkup.

EDIT: This was already reported and resolved in T15802: Regression: HTML entities rendered as plain text in config option descriptions, I'm keeping the comment just to track this.

May 2 2024, 08:51 · Discussion Needed, Remarkup

Apr 30 2024

revi added a comment to T15744: Render html color codes in remarkup.

Or wrap a text with a background color - (something like What if I can change the background color here (and no italics)?)

Apr 30 2024, 15:40 · Discussion Needed, Remarkup

Apr 29 2024

valerio.bozzolan added a comment to T15744: Render html color codes in remarkup.

I'm somehow even more inclined to propose to base this feature on a new custom parser, like cowsay {{{ asd }}}

Apr 29 2024, 13:52 · Discussion Needed, Remarkup
valerio.bozzolan added a comment to T15106: "Upload file" in remarkup text fields should attach by default .

Minor clarification.

Apr 29 2024, 05:48 · Files, Remarkup

Apr 11 2024

avivey raised the priority of T15106: "Upload file" in remarkup text fields should attach by default from Normal to High.
Apr 11 2024, 10:41 · Files, Remarkup

Apr 2 2024

bekay added a comment to T15744: Render html color codes in remarkup.

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...

Apr 2 2024, 09:12 · Discussion Needed, Remarkup

Apr 1 2024

20after4 added a comment to T15744: Render html color codes in remarkup.

This D25540: Add PhutilRemarkupHexColorCodeRule, a new remarkup rule to format color codes should be ready to merge now, if someone wouldn't mind reviewing it.

Apr 1 2024, 18:14 · Discussion Needed, Remarkup

Mar 26 2024

valerio.bozzolan closed T15729: Remarkup code blocks: guess the language from the "name" (if available) as Resolved by committing rPb1ae1b1a6789: Remarkup code blocks: guess language from "name=".
Mar 26 2024, 10:20 · User-valerio.bozzolan, Remarkup

Mar 25 2024

valerio.bozzolan claimed T15729: Remarkup code blocks: guess the language from the "name" (if available).
Mar 25 2024, 07:44 · User-valerio.bozzolan, Remarkup
valerio.bozzolan added a revision to T15729: Remarkup code blocks: guess the language from the "name" (if available): D25560: Remarkup code blocks: guess language from "name=".
Mar 25 2024, 07:42 · User-valerio.bozzolan, Remarkup

Mar 19 2024

valerio.bozzolan updated the task description for T15161: Internal resources should avoid to become external links, as default.
Mar 19 2024, 16:41 · User-valerio.bozzolan, Discussion Needed, Remarkup
valerio.bozzolan closed T15182: Simplify the way "internal links" are identified, a subtask of T15161: Internal resources should avoid to become external links, as default, as Resolved.
Mar 19 2024, 16:34 · User-valerio.bozzolan, Discussion Needed, Remarkup
valerio.bozzolan closed T15182: Simplify the way "internal links" are identified as Resolved by committing rP328aee033fbd: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
Mar 19 2024, 16:34 · User-valerio.bozzolan, Remarkup

Mar 15 2024

avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

(I've put a note in Dependencies for now)

Mar 15 2024, 18:23 · Remarkup
avivey renamed T15756: Rendering remarkup with many embedded code blocks is very slow from Parsing for a fairly reasonable sized remarkup text takes too long to Rendering remarkup with many embedded code blocks is very slow.
Mar 15 2024, 09:17 · Remarkup
bekay added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

Updated Pygments with pip to 2.17.2 und cut the time in half. So yeah, that's already an improvement.

Mar 15 2024, 09:08 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

I guess we could also try to cache the individual rendered code-blocks.

Mar 15 2024, 09:08 · Remarkup
bekay added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

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 15 2024, 08:14 · Remarkup

Mar 14 2024

avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

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).

Mar 14 2024, 17:46 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

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.

Mar 14 2024, 17:38 · Remarkup
valerio.bozzolan added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

I'm quite sure the problem is limited on repeated code blocks.

Mar 14 2024, 17:03 · Remarkup
avivey added a comment to T15756: Rendering remarkup with many embedded code blocks is very slow.

"slow remarkup" often boils down to 1-2 inefficient regexp in a rule somewhere.

Mar 14 2024, 16:47 · Remarkup
valerio.bozzolan triaged T15756: Rendering remarkup with many embedded code blocks is very slow as High priority.

Can reproduce

Mar 14 2024, 15:17 · Remarkup
bekay created T15756: Rendering remarkup with many embedded code blocks is very slow.
Mar 14 2024, 14:46 · Remarkup

Mar 9 2024

valerio.bozzolan added a revision to T15182: Simplify the way "internal links" are identified: D25555: isSelfURI: fix anchors and relative URIs (that are "self" indeed).
Mar 9 2024, 22:30 · User-valerio.bozzolan, Remarkup

Feb 29 2024

20after4 added a comment to T15747: Support short language specifier in code blocks: ```php instead of ```lang=php.

Added documentation in D25547: Diviner: Improve documentation for remarkup code blocks

Feb 29 2024, 17:36 · Remarkup