pest-parser / site

This repo contains the source code for https://pest.rs
http://pest.rs/
Apache License 2.0
13 stars 16 forks source link

Add format button. #31

Closed huacnlee closed 1 year ago

huacnlee commented 1 year ago

20230228-211035

huacnlee commented 1 year ago

@tomtau Before you publish site, please merge https://github.com/pest-parser/pest-fmt/pull/11 first.

nathanielknight commented 1 year ago

This looks good :+1:

My only concern is that pest-fmt makes the WASM bundle about 100kb larger (548k vs 440k), but the page still seems to load pretty quickly and I don't expect we many users loading over bad networks.

I think we've talked about splitting the editor into its own "playground" page; that seems like a reasonable avenue to pursue if we find that having the editor on the hoe page is starting to slow it down.