SimonDanisch / Bonito.jl

Serving JS to the browser
MIT License
212 stars 31 forks source link

empty line not work in Bonito.jl Markdown #241

Closed kongdd closed 3 months ago

kongdd commented 3 months ago
using Bonito, Observables
using Bonito: @js_str, onjs, Button, TextField, Slider, linkjs, Session, App
using Bonito.DOM
using Markdown

# css_main = Bonito.Asset("./src/main.css")
app = App() do session::Session
  dom = md"""
  ## [Flood monitor](http://localhost/flood) 

  <br>
  <br>

  <hr>

  <p style=""></p>

  ## [leafmap](http://localhost/leafmap)
  """
  return Bonito.DOM.div(Bonito.MarkdownCSS, css_main, Bonito.Styling, dom)
end

image

SimonDanisch commented 3 months ago

This is a Markdown.jl problem:

image

SimonDanisch commented 3 months ago

I'd take this to Markdown.jl, since there's not much we can do here.