hexops / vecty

Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
BSD 3-Clause "New" or "Revised" License
2.8k stars 143 forks source link

Change markdown renderer to goldmark #274

Closed nyiyui closed 1 year ago

nyiyui commented 3 years ago

Goldmark is CommonMark compliant, and this is the same (or similar) reason it is being used in Hugo.

soypat commented 1 year ago

Works A-OK. In my experience yuin's implementation works far better than blackfriday and it's also very well maintained. One slight downside is the binary size is greater (see below). I think it's worth the tradeoff. Worth mentioning the current import (github.com/slimsag/blackfriday) has a malformed go.mod file. See https://github.com/hexops/vecty/issues/305.

I'll update the readme next to reflect the size changes: wasm:3.6M->5.9M, gz:1010k->1.37M, brotli: 745k->952k

soypat commented 1 year ago

Thank you @nyiyui for your contribution!