pull down to refresh

If all goes well, you won't notice that anything has changed yet and can carry on. But, we've swapped out our markdown editor and will unveil its new powers in stages.

As of this release, what you see when you click preview now is a WYSIWYG (think Google Docs) with editing disabled. In a very near future release, we will enable editing of what you see in preview, allowing you to format posts and comments, and do everything markdown wizards can do on SN, without any knowledge of markdown. At the same time, the existing markdown experience will not change, because @sox has triumphed and created a bidirectional should-be-lossless mapping from markdown to WYSIWYG and WYSIWYG to markdown.

Some of you will remember the wysiwyg experiment I teased years ago. The reception for that was so poor that other bitcoin founders were sending me condolences via DMs and we shelved it. At the time, I didn't realize that nearly all hybrid markdown-wysiwyg systems suck, and my editor sucked, because they have unreliable mappings from one format to another (typically relying on regex and other kludge). In our research, we found that literally all hybrid markdown-wysiwyg systems, even multi-billion dollar reddit's and ones that do wysiwyg to markdown well, cannot map reliably in both directions. @sox made an editor that does.

What this will mean soon is that you can write something in markdown on SN, switch to the WYSIWYG and see how your post will look, edit it in the WYSIWYG, then switch back and see all the WYSIWYG changes in the markdown, edit the markdown, and so on. While many of us will continue to write markdown, there are things like tables that are more comfortable to create in a WYSIWYG and features like image size and alignment that markdown doesn't have a clear standard for. This editor will also allow us to add lots of nonstandard SN-specific features to posts and comments (at the fancy end you can imagine widgets) without requiring stackers read documentation.[1] And, with markdown still first class, if we ever do anything tasteless with our WYSIWYG, you can simply use markdown instead.

Anyway, as I said, you won't notice that much has changed yet and can carry on. But, I'm super excited about this new editor and solving a problem that's been haunting me for years.

Sox and I will be standing by to fix any bugs you find. Also, No Trust November is slated for release tomorrow (after I do the newsletter to not mess with anyone's expectation of being a top post).

  1. This is also a huge win for SN's developers because a reliable mapping between formats means that storing posts and comments in either format allows us to generate the other. More specifically, we can store all posts and comments in SN flavored markdown yet display them with features you only expect to see in rich text.

My screen keeps ending up zoomed like this after I make a comment. I assume this is related to the editor changes

reply
101 sats \ 3 replies \ @k00b OP 20h

iOS will zoom when an editor's font is <16px which could be related. It's weird that it happens after leaving a comment though

reply

Maybe just because when I click into the editor it zooms in, then doesn’t zoom back out after? I think that’s more accurate

reply
50 sats \ 1 reply \ @k00b OP 20h

Writing this on iOS to test

It didn’t work on my initial reply, but edit triggered it

reply

Goddamn apple trying to be helpful

reply
88 sats \ 1 reply \ @jakoyoh629 20h

I don't think these GIFs used to go full window. @sox

reply
0 sats \ 0 replies \ @sox 20h

No, they didn't lol, I'll add this to the list of media fixes. Thanks!

reply

This new release is killing me! Especially since I am a bad speller!

reply
80 sats \ 2 replies \ @k00b OP 21h

pushed! hopefully that fixes things

reply
0 sats \ 51 boost \ 0 replies \ @BlokchainB 2h

Yes it did! Much better now!

reply

Okay thanks I’ll keep you posted

reply
54 sats \ 0 replies \ @sox 20h

Let us know if the problems with autocorrect/autocomplete persist even after the latest update

reply
49 sats \ 0 replies \ @k00b OP 21h

I'll push sox's fixes now. I haven't been on mobile much yet

reply

Noticed an odd change on the mobile PWA.

After I make a comment the zoom automatically increases to get back to my normal zoom level I have to zoom out or close the app.

The auto correction seems to be worse.

The first letter isn’t always capitalized automatically

reply
80 sats \ 0 replies \ @sox 20 Dec

I’ve been noticing all these weird behaviors too.

Working on a fix, even though we’re probably talking about fixing Lexical, the framework we used to create the editor. 🫡

reply
337 sats \ 3 replies \ @sox 19 Dec

I'm personally shaking because what you're reading right now is the product of hand-made Markdown mapping. This is completely new.

Feel free to mention me wherever you find inconsistencies, bugs, whatever!

This is a huge day for writers, and I can't wait to let you try what we're now capable of doing.

reply
150 sats \ 1 reply \ @plebpoet 19 Dec

Thanks @sox 🫡

reply
0 sats \ 0 replies \ @sox 19 Dec

The next stages are going to be fun!

reply

Nice work!

reply

does this work on mobile?

reply
88 sats \ 5 replies \ @sox 19 Dec

why wouldn't it? :P


if you're referring to wysiwyg capabilities, that's gonna come in a later stage.

reply

Yeah I don‘t see a wysiwyg button to push

reply
164 sats \ 1 reply \ @k00b OP 19 Dec

there isn't one yet

you won't notice that anything has changed yet and can carry on

`preview' is an uneditable wysiwyg that we will make editable in a future release

reply

Thanks for clearing that up

reply
92 sats \ 1 reply \ @sox 19 Dec

We're fragmenting the new editor in various stages, this allowed us to focus on some really important details, like this new bi-directional engine that's creating my words!

reply

I understand now

reply
This is also a huge win for SN's developers because a reliable mapping between formats means that storing posts and comments in either format allows us to generate the other. More specifically, we can store all posts and comments in SN flavored markdown yet display them with features you only expect to see in rich text

I don't understand the footnote. Don't you already store all posts and comments in their raw markdown and display them fully rendered?

reply

Yes, it's a weird point to make. The main thing is that most systems that allow rich text editing do not store the result as markdown (because it's lossy), and instead store html/json.

Also

  1. We can do the reverse. We can store the html/json and give you markdown. (We still only store markdown though.)
  2. For folks that edit entirely in WYSIWYG, we still store it as markdown.
  3. We were limited to pretty simple markdown syntax extensions before because anything crazy novel wouldn't have been accessible and therefore not worth developing. (e.g. you're the only one to use your ToC extension.)
reply

Ah, yeah, that's what I figured after writing my post: your reversible markdown renderer lets people create in WYSIWYG mode, but still let you store it as markdown.

you're the only one to use your ToC extension

I think @siggy47 uses it too!

reply

Ah nice! I wish more people to use it

reply
100 sats \ 1 reply \ @sox 19 Dec

This editor now speaks AST!

reply

translation from italian: abstract syntax tree

reply

Christmas comes 6 days early! I'm very excited about this.

@sox made an editor that does.

My respect for @sox increases to new heights. Most impressive.

reply
made an editor that does.

Will you open source it?

reply
reply

Legends!!

reply
10 sats \ 6 replies \ @sox 19 Dec

in its early stages, it works, will insanely document it yes, it clipped

reply
in its early stages, it works, will insanely document it yes, it clipped

why did you use shrunk text?

for folks who wish to learn these black arts, using "quote reply" from the three dots menu reveals that @sox had HTML superscript tags, <sup> and </sup>, enclosing each line separately.

reply
16 sats \ 4 replies \ @sox 20 Dec
why did you use shrunk text?

The way you write can reflect the way you speak with your voice!

reply
100 sats \ 3 replies \ @adlai 20 Dec
... reflect the way you speak

In some cases I think it's counterproductive; e.g. superscript without any normal text in the same comment is confusing, not to mention hard to read when the normal font is already small.

obviously it is at the edge of "sounds like a you problem", and I don't mean to draw attention away from the good work you're doing on the site.

reply
16 sats \ 2 replies \ @sox 20 Dec
not to mention hard to read when the normal font is already small

I agree! The intent was to make it hard to read, signaling that I'm shy about my code. Anyway, I'm also always using an hidpi monitor, which makes sub/superscript easier to read... while making me a bit insensitive about the topic :P

good work you're doing on the site

Hey thank you! I appreciate it ^^

Is it possible that links in comments made using the new editor do not go to target="_blank" or whatever the cool kids use for that nowadays?

Great work!

reply
100 sats \ 6 replies \ @Wumbo 19 Dec

@k00b and @sox , take a look at #1357566

This string appears to be getting intrupted strangely:

$88.8 million and Mastercard about $78.7 million

When I am in the write tab it looks fine but when on the preview table it is different

reply
10 sats \ 4 replies \ @sox 19 Dec

about $88.8 million and Mastercard about $78.7 million

The editor thought you were writing a formula lol


Anyway, probably you should escape the $ dollar sign, but more importantly maybe we should only support double dollar signs ($$).

reply

$test$

$test

$test $test

$test$test

... yeah, definitely make it so that only $$ starts a latex environment

reply
0 sats \ 1 reply \ @AG 19 Dec

alignright$ 🤔🤭

reply
0 sats \ 0 replies \ @sox 19 Dec

Alignments will come in a later stage! Unless you mean LaTeX alignments, they should work iirc.

reply
0 sats \ 0 replies \ @sox 19 Dec

Pushed 🫡

reply

Fixed!

reply
0 sats \ 1 reply \ @adlai 20 Dec

I wanted to crack a joke about your use of the phrase "other bitcoin founders" as though you're accidentally outing yourself as Satoshi, however, highlighting those words and clicking quote reply didn't copy them into the comment box.

new bug?

reply
16 sats \ 0 replies \ @sox 20 Dec

Fixed it tonight, but misremembered the original behavior. Should be live later today!

reply