Skip to content

About

Remarkable sample for WebSharper

Resources

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSharper Remarkable

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.

screenshot

Try it live

What it shows

  • A live Markdown preview driven by a single Var<string>.
  • Remarkable HTML 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.

How it works

  • src/Client.fs keeps the Markdown in a Var; on every change it renders the HTML into the preview element and calls Hljs.HighlightAll().
  • src/wwwroot/index.html is the page — the header and the two cards — bound with .Bind(); both Remarkable and highlight.js are bundled from npm by esbuild.

Running locally

dotnet run --project src

Then open http://localhost:5200.

Building

dotnet build src/Remarkable.fsproj -c Release

Deployment

Every push to master builds in Release and publishes src/wwwroot to the gh-pages branch via .github/workflows/deploy.yml.

About

Remarkable sample for WebSharper

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages