A live Markdown editor built with WebSharper and the WebSharper.Remarkable bindings: type Markdown on the left and see Remarkable render it on the right, with syntax-highlighted code blocks.
- A live Markdown preview driven by a single
Var<string>. RemarkableHTML rendering, configured from F#.- Fenced code blocks colored by highlight.js — the
old sample used
WebSharper.Google.CodePrettify, which has no WebSharper 10 binding, so it has been replaced with HighlightJS.
src/Client.fskeeps the Markdown in aVar; on every change it renders the HTML into the preview element and callsHljs.HighlightAll().src/wwwroot/index.htmlis the page — the header and the two cards — bound with.Bind(); both Remarkable and highlight.js are bundled from npm by esbuild.
dotnet run --project src
Then open http://localhost:5200.
dotnet build src/Remarkable.fsproj -c Release
Every push to master builds in Release and publishes src/wwwroot to the
gh-pages branch via .github/workflows/deploy.yml.
