Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.76 KB

File metadata and controls

59 lines (39 loc) · 1.76 KB

@def title = "More goodies" @def hascode = true @def rss = "A short description of the page which would serve as blurb in a RSS feed; you can use basic markdown here but the whole description string must be a single line (not a multiline string). Like this one for instance. Keep in mind that styling is minimal in RSS so for instance don't expect maths or fancy styling to work; images should be ok though: " @def rss_title = "More goodies" @def rss_pubdate = Date(2019, 5, 1)

More goodies

More markdown support

The Julia Markdown parser in Julia's stdlib is not exactly complete and Franklin strives to bring useful extensions that are either defined in standard specs such as Common Mark or that just seem like useful extensions.

  • indirect references for instance like so

or also for images

some people find that useful as it allows referring multiple times to the same link for instance.

  • un-qualified code blocks and indented code blocks are allowed and are julia by default

    a = 1 b = a+1

or

a = 1
b = a+1

you can specify the default language with @def lang = "julia". If you actually want a "plain" code block, qualify it as plaintext like

so this is plain-text stuff.

A bit more highlighting

Extension of highlighting for pkg an shell mode in Julia:

(v1.4) pkg> add Franklin
shell> blah
julia> 1+1
(Sandbox) pkg> resolve

you can tune the colouring in the CSS etc via the following classes:

  • .hljs-meta (for julia>)
  • .hljs-metas (for shell>)
  • .hljs-metap (for ...pkg>)