[FIXED] Blockquotes of XGIDs can auto-format and post incorrect

This issue has been resolved (see bottom of topic for details)

I discovered this today with the help of davidklausa; if you use a blockquote and put in an XGID, some double hyphens can auto-format as an em dash, shifting your checkers in the position when pasted back into XG.

As a workaround, use a "preformatted text block" instead, however, prevents the auto-format.

I.e., this button:
image

or manually type three back ticks to start/end like this:
image

(the "text" ID disables any colorization from syntax inference)

Example Input

Here is an example of the error using the same XGID as a blockquote:

XGID=-aBBBBB-C--Ab----bbbbca--A:2:-1:1:42:0:0:0:7:10

and as preformatted text:

XGID=-aBBBBB-C--Ab----bbbbca--A:2:-1:1:42:0:0:0:7:10

Output Comparison

image

Alright, so stick to the preformatted text block when posting XGIDs. Good to know!

I have disabled the em dash auto-correction/replacement with help from the folks at Discourse Meta so this should no longer be an issue.

Note: I had to disable all of the typographical substitutions so we lose auto curly quotes and other (useless?) things. I don't see this as a big deal and definitely worth the headaches saved by preserving raw pasted XGIDs in my mind :slight_smile:

1 Like

I'm the developer of bglog, a backgammon diagramming utility. If this blog supports custom javascript, bglog could be plugged in to make adding positions simple and intuitive (and feature-rich!). Let me know if you're interested...
https://bglog.org/bglogNT/NT.html
Even has documentation:
https://bglog.org/bglogNT/NThelp.html

1 Like

Interesting, I will check it out. I implemented the current board script via the lazy method with some JavaScript that targets special div blocks when the post gets rendered ("baked").

Discourse supports full plugins but it is more involved than my current approach (you have to build from source) and I didn't want to go too deep until I figured out if people actually liked/wanted the site. I think if we got some real mass/inertia on the site there is the potential for some really cool custom plugin behavior for sure.

Thanks for replying. I understand. Hopefully the site will grow and we can revisit this idea at a later date.

1 Like