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.

100 sats \ 6 replies \ @Wumbo 18h

@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 18h

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 16h

alignright$ 🤔🤭

reply
0 sats \ 0 replies \ @sox 16h

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

reply
0 sats \ 0 replies \ @sox 17h

Pushed 🫡

reply

Fixed!

reply
337 sats \ 3 replies \ @sox 18h

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 15h

Thanks @sox 🫡

reply
0 sats \ 0 replies \ @sox 14h

The next stages are going to be fun!

reply

Nice work!

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
336 sats \ 4 replies \ @k00b OP 18h

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
36 sats \ 0 replies \ @k00b OP 18h

Ah nice! I wish more people to use it

reply
100 sats \ 1 reply \ @sox 18h

This editor now speaks AST!

reply
100 sats \ 0 replies \ @k00b OP 18h

translation from italian: abstract syntax tree

reply
200 sats \ 0 replies \ @Scoresby 18h

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
69 sats \ 1 reply \ @BlokchainB 2h

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 2h

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
made an editor that does.

Will you open source it?

reply
reply

Legends!!

reply
10 sats \ 6 replies \ @sox 15h

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

reply
0 sats \ 5 replies \ @adlai 1h
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 1h
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 1h
... 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 1h
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 ^^

69 sats \ 2 replies \ @optimism 17h

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
0 sats \ 1 reply \ @adlai 1h

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 1h

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

reply

does this work on mobile?

reply
88 sats \ 5 replies \ @sox 13h

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 13h

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 13h

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