Page 1 of 1 :: Viewing 1-22 of 22
[Input Requested] Potential Changes To Text Input On The Site - Started by: BadKarma
[Input Requested] Potential Changes To Text Input On The Site
Posted: 24 Apr 2024, 01:17 PM

Hey everyone,

With the creation of Side 7 v5, I decided to try using Markdown as the formatting markup of choice in an effort to make things simpler for site members to format posts and such. Unfortunately, that resulted in things being more confusing for people, especially when it comes to the syntax for single line spaces, and presented issues with the inconsistent way in which the editor presented the formatted text VS the way the site rendered it.

That is being remedied with the next site update.

I am updating the editor to one that saves formatted text as HTML instead of Markdown, so text renders more accurately and consistently. Your older entries that are still in Markdown will still render as they do today, but all new entries going forward will be saved as HTML, not Markdown.

Here's where things get a little messy. If you edit an older entry that was saved as Markdown, the new editor will not recognize any of the formatting and will just show the raw text as a single block of text. The editor has no HTML to format off of, and therefore it just appears to be completely unformatted to the editor. I have researched almost a dozen editors, and they all do the same thing.

So, to recap:
Pros: consistent formatting between the editor and site rendering, new features like emoji selections, more formatting options than before
Cons: Editing older, Markdown-formatted entries will be unformatted in the editor

What are your thoughts about this issue? Is this a huge issue for you? Is it no problem?

Thanks!
-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 24 Apr 2024, 06:31 PM

As long as existing formatting is grandfathered in, that clears the highest hurdle. CivFanatics tweaked the back-end at least twice since I've been a user and while basic formatting remained intact, certain character codes (em-dashes, foreign symbols) broke, sometimes with no visible traces, and the Xenforo migration didn't translate table syntax to a usable replacement. (And the less said about dA Eclipse, the better.)

There are two points I'm unclear on:

1) Is Markdown still valid as input? It's not clear if this is a wholesale sunset, or the updated editor can still translate the syntax to HTML.

2) Is the issue with editing old posts that the markup is stripped entirely, or just that it's laid plain and has to be manually reformatted? The former would be tedious, but not unmanageable—I already weathered it mirroring upload descriptions from dA. :P.

The main advantage of Markdown is its shorthand, but if a return to an HTML base opens up the possibility of a WYSIWYG live editor, I accept it as a necessary sacrifice.

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 24 Apr 2024, 06:46 PM
This post has been edited 1 time. Last edit on 24 Apr 2024, 06:48 PM.

For the sake of maintaining the ability to render older entries, Markdown will still be supported. The editor does not strip it out, it just displays it as plain text (including the Markdown tags) unformatted.

While Markdown is a great shorthand, and is still going to be usable, the editor itself will save the text as HTML, not Markdown. Please note that the Markdown used in the editor will not render as it does with the current editor. But, it will be rendered out when the web page the post is on is rendered.

The reason I'm making the change is because there just have been so many issues with the Markdown, whether it's inconsistent rendering, or people not understanding the syntax, or in some cases certain Markdown tags not being supported (I'm looking at you strikethrough). Not to mention the current editor trying to turn @name tags into Github links in the preview. So...

But, I have one other question to add to the conversation: Do we want this new editor added to the forums posting screen?
-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 24 Apr 2024, 08:19 PM

So basically, a backwards-compatible refactor that improves stability, expands versatility, and is essentially unnoticeable on the front end. This is literally the best result I could have hoped for; I'm not sure why there's even a debate. :D

BadKarma:
Do we want this new editor added to the forums posting screen?

Yes, please! The forum architecture is different from the galleries, probably owing to its use of BBCode, but I'm surprised a "widget" editor wasn't already in place. The current method always felt like a stopgap, and has the issue where going back to revise the draft puts the timestamp out of sync with when the post actually goes public.

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 24 Apr 2024, 09:57 PM

Pull the trigger. Posts, journals, bios, comments, forums, DMs.. apply the change every where. A little bit of a mess seems acceptable if it means that HTML will be supported (again?). I vaguely remember a time when I posted my art here with HTML formatting, and then all of my old submissions got broken when the Markdown formatting was implemented. It was ugly and annoying, but it wasn't the end of the world to edit them. People can always delete and resubmit their work if they want to keep a consistent theme throughout their gallery— I'm not saying that it would be fast, easy, or fun, and the loss of comments/favorites/views would suck, but it's doable. It might be a rough transition for some people, but it's a necessary change overall. Growing pains, 'n'all'at.

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 25 Apr 2024, 04:16 AM

I've been picking up on HTML when posting on other 'sites, so I think I'm prepared to deal with such a change. I won't deny that it'll be a pain, but you won't hear me complaining about it. As you said, the older stuff will maintain their formatting as long as we don't go in and edit it. I can see myself probably making changes to a few older posts after the switch, but I doubt it will be a significant hassle. Let 'er rip!

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 25 Apr 2024, 03:30 PM
Cynicallia:
Pull the trigger. Posts, journals, bios, comments, forums, DMs.. apply the change every where. A little bit of a mess seems acceptable if it means that HTML will be supported (again?). I vaguely remember a time when I posted my art here with HTML formatting, and then all of my old submissions got broken when the Markdown formatting was implemented. It was ugly and annoying, but it wasn't the end of the world to edit them. People can always delete and resubmit their work if they want to keep a consistent theme throughout their gallery— I'm not saying that it would be fast, easy, or fun, and the loss of comments/favorites/views would suck, but it's doable. It might be a rough transition for some people, but it's a necessary change overall. Growing pains, 'n'all'at.

Technically HTML support never went away. There is a limit on what HTML tags can be used, but you could hand-code HTML still. The big change is here is that the editor will no longer save things as Markdown, but instead will save it as HTML. Overall, cleaner, and yeah, there will be some growing pains but it's relatively minor. I just want the membership to be aware.

-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 25 Apr 2024, 03:32 PM
fragmented_imagination:
I've been picking up on HTML when posting on other 'sites, so I think I'm prepared to deal with such a change. I won't deny that it'll be a pain, but you won't hear me complaining about it. As you said, the older stuff will maintain their formatting as long as we don't go in and edit it. I can see myself probably making changes to a few older posts after the switch, but I doubt it will be a significant hassle. Let 'er rip!

Fortunately, with the editor, you won't need to know HTML. You will edit your text in a rich-text editor, and the formatting you do will be saved as HTML for you.

-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 26 Apr 2024, 12:39 AM
BadKarma:
Fortunately, with the editor, you won't need to *know* HTML. You will edit your text in a rich-text editor, and the formatting you do will be saved as HTML for you. -- BK

Aaah, okay. Sounds good!

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 29 Apr 2024, 05:57 AM

The only major reason I can think this would cause significant problems is if it altered literature formatting, but that text already edits as HTML so it shouldn't be affected.

+1 to porting the editor to the forums. :)

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 30 Apr 2024, 03:16 AM

DO IT

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 31 May 2024, 10:27 PM

By and large things have migrated smoothly; there was a glitch where single-line breaks messed with Markdown links in submission descriptions, but that seems to have been fixed.

Is there a toggle for source code/final preview? Basic Markdown formatting is auto-translated as you type, but the URL and image code doesn't work in descriptions and I haven't tried it in general comments; meanwhile user handles don't parse in the editor but render properly in the final post. (I'm also unclear if there's an equivalent to \ to override formatting on the fly.) The new system is certainly more reliable, but my reflexes still reach for the preview button. :P

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 02:10 AM

Thorvald:
By and large things have migrated smoothly; there was a glitch where single-line breaks messed with Markdown links in submission descriptions, but that seems to have been fixed.

That's because the new editor doesn't edit and save text in Markdown. It saves and edits in straight HTML. However, if you put Markdown syntax in your text, the site's page rendering engine will parse that.

Quote:
Is there a toggle for source code/final preview?

Unfortunately, no. But, there might be a plugin I can use to give you that feature. I'll need to do some checking.

Quote:
Basic Markdown formatting is auto-translated as you type, but the URL and image code doesn't work in descriptions and I haven't tried it in general comments;

What URL are you trying to put in? I have had no problem with adding links and images in descriptions (and most everywhere else the editor exists).

Quote:
meanwhile user handles don't parse in the editor but render properly in the final post. (I'm also unclear if there's an equivalent to \ to override formatting on the fly.) The new system is certainly more reliable, but my reflexes still reach for the preview button. :P

User handles won't parse in the editor because there's no logic in there to do so. Some day I might write a plugin for the editor that will do so, but that will be some time. And, as the editor works in HTML and not in Markdown, there's no override of formatting. Although, you can highlight text, then use Format -> Clear Formatting. Does that help?

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 02:52 AM

Sorry, no real input, I just wanted to mention something. While I was posting a comment in the forums earlier today, from mobile, I was having trouble editing my text. Every time I tried to highlight something (to copy/cut/replace/delete it), only a single word would become highlighted, and a prompt to turn it into a hyperlink would pop up. There was no way to grab an entire sentence to move or delete it, so I had to drop my cursor down and manually backspace through every letter to edit what I was writing.

I was only using the forums, so I can't say if this might also apply to submission info or profile info as well. I could try to edit or post something new to see if the same thing happens, and grab screenshots if you want.

I'm at my computer now and I'm not having that issue. It seems to be a mobile thing. (I use Brave browser on all of my devices.)

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 02:59 AM

Well, that would be an unfortunate issue. I'll give it a try on my phone, too. I wonder if there are gesture commands getting in the way.

-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 07:10 AM

I don't use gestures or any fancy commands on my phone. This was a completely new thing which I had never seen before, neither with my phone's keyboard nor with any text input field. It didn't happen on any other sites that I use. I recorded a clip of what happens. I had to compress it a bit in order for Discord to allow me to upload it, but you should be able to see what's happening. I can DM it you in a sec.

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 04:06 PM

Yeah, I saw your DM and the video. I'm researching if there is a way to correct these issues; they are annoying.

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 10:26 PM

So, I was able to add in a copy/paste contextual menu to the editor. Unfortunately, whether you can use them completely depends upon your browser's security settings. By default for most browsers, Javascript is prevented from having direct access to the clipboard. While CTRL+X/C/V works fine, that's because it's the browser itself interacting with the clipboard, not the editor's Javascript.

sigh I don't know if this is going to be directly fixable for mobile.

-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 01 Jun 2024, 11:00 PM

BadKarma:
That's because the new editor doesn't edit and save text in Markdown. It saves and edits in straight HTML. However, if you put Markdown syntax in your text, the site's page rendering engine will parse that.

OK, I seem to have stumbled onto an edge case: Compare the descriptions to these three pieces, and note the way the header links do and do not break based on the colon in the first line. Note also in 1 and 3 that this link-break pulls the proceeding paragraph up a line—perplexingly, if the second para is originally single-spaced its link breaks too, but not if it had a gap between.

Quote:
What URL are you trying to put in? I have had no problem with adding links and images in descriptions (and most everywhere else the editor exists).

Insertion through the editor works, but the Markdown code renders as plain-text.

Quote:
Although, you can highlight text, then use Format -> Clear Formatting. Does that help?

I'm referring to brute-forcing characters used in shorthand formatting, like *asterisks*, though it looks like Ctrl-Z does the job. :3

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 02 Jun 2024, 12:30 AM

can I suggests ability to add spoiler tags here in the site's text input?

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 02 Jun 2024, 01:15 AM

Masonicon:
can I suggests ability to add spoiler tags here in the site's text input?

It's on my list of things to add.

-- BK

RE: [Input Requested] Potential Changes To Text Input On The Site
Posted: 02 Jun 2024, 01:56 AM

There are now site-wide spoiler tags. Just put <spoiler> at the beginning, and </spoiler> at the end of the text you want to hide.

Page 1 of 1 :: Viewing 1-22 of 22