You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Jim, I can't get the basic example to work : inline math is not displayed.
I have made the simplest functioning code I can think of to showcase the issue, because I can't see what I am doing wrong.
FYI we will be using extensively the parsing / rendering part of the module.
moduleMainexposing (..)
importBrowserimportHtmlexposing (Html, div)
importMarkdown.Optionexposing (MarkdownOption(..))
importMarkdown.RenderasMkdnexposing (MarkdownMsg)
type alias Model=Stringinit: ( Model, CmdMsg )
init =( math,Cmd.none )math =" This is inline math : $ a^2 + b^2 = c^2 $ "type Msg=MkdnMsgMkdn.MarkdownMsgupdate:Msg->Model-> ( Model, CmdMsg )
update _ model =( model,Cmd.none )view:Model->HtmlMsgview model =
div [][Mkdn.toHtml ExtendedMath model |>Html.map MkdnMsg]main:Program()ModelMsgmain =Browser.element
{ view = view
, init =\_ -> init
, update = update
, subscriptions = always Sub.none
}
The text was updated successfully, but these errors were encountered:
Hi Jim, I can't get the basic example to work : inline math is not displayed.
I have made the simplest functioning code I can think of to showcase the issue, because I can't see what I am doing wrong.
FYI we will be using extensively the parsing / rendering part of the module.
The text was updated successfully, but these errors were encountered: