Tags v0.2.9

in this version, we add add markdown state config to switch markdown extension.

thanks for goldmark, a vefy powerful markdown lib, now fungo support toc, meta, emoji, mathjax, mermaid and more extension.

you can open/close them by set the state value in confit.toml.

  1. usually, you can set config.toml like this

    1[site.markdown.state]
    2emoji = true
    3gfm = true
    
  • support emoji

  • suopport table, strikethrough, linkify, taskList

  1. if you are concerned about SEO, you can set config.toml like this

     1[site.markdown.state]
     2emoji = true
     3gfm = false
     4table = true
     5strikethrough = true
     6linkify = false
     7taskList = true
     8
     9[site.markdown.link.source]
    10"you-customize-site-whitelist-host(such as fungo.dev)" = true
    11
    12[site.markdown.link.attribute]
    13rel = "nofollow"
    14target = "_blank"
    
  • support emoji

  • suopport table, strikethrough, taskList, not suppot linkify(this will give autolink to url in markdown file)

  • support link reset, you can add rel="nofollow",target="_blank" to the link no in you customize whitelist

  1. if you need add code to markdown file, you can set config.toml like this

    1# highlighting
    2[site.markdown.highlighting]
    3state = true
    4theme = "github"
    5linenumber = true
    
  • support set highlighting of code with theme such as github, monokai

  • support set linenumber of code

  1. if you need add image to markdown file, you can set config.toml like this

    1# image
    2[site.markdown.image]
    3state = true
    4source = "/assets/img/loading.gif"
    5target = "data-src"
    6
    7[site.markdown.image.attribute]
    8class = "lazy"
    
  • support set customize attribute

  • support set image lazyload

  1. if you need add video to markdown file, you can set config.toml like this

     1# video
     2[site.markdown.video]
     3state = true
     4
     5[site.markdown.video.source]
     6"www.youtube.com" = "/embed"
     7"player.bilibili.com" = "/player.html"
     8"v.qq.com" = "/txp/iframe/player.html"
     9
    10[site.markdown.video.attribute]
    11width = "560"
    12height = "315"
    13border = "0"
    14scrolling = "no"
    15frameborder = "no"
    16framespacing = "0"
    17allowfullscreen = "true"
    
  • support set customize video platform

  • support set customize iframe attribute

for more info? see the markdown document.

ADD

  • add markdown state config

  • improved markdown toc, meta, emoji, mathjax, mermaid