How to get Markdown processed content in Jekyll tag plugin

后端 未结 2 1626
情书的邮戳
情书的邮戳 2020-12-30 10:48

I\'m working on a Jekyll tag plugin for my Octopress site to help me make a \'note\' element. I just want to be able to highlight a piece of information on my blog as a sid

2条回答
  •  灰色年华
    2020-12-30 11:02

    Jekyll 3.x : getConverterImpl is now deprecated

    Use find_converter_instance to get the converter :

    def render(context)
      text = super
      site = context.registers[:site]
      converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
     _output += "
    #{converter.convert(_caption)}
    "

提交回复
热议问题