kpumuk commented on code in PR #14:
URL: https://github.com/apache/thrift-website/pull/14#discussion_r3103391753


##########
_plugins/remote_snippets.rb:
##########
@@ -42,13 +42,14 @@ def render(context)
     end
     snippet_type = "snippet"
     if @type == "direct"
-      content = Kramdown::Document.new(content).to_html
+      content = context.registers[:site]
+        .find_converter_instance(Jekyll::Converters::Markdown)
+        .convert(content.to_s)

Review Comment:
   The snippet is taken directly from the `markdownify` Liquid filter in the 
Jekyll codebase, so should be idiomatic for the platform 
https://github.com/jekyll/jekyll/blob/5cf05d7d092f22b0229fd02f7879a2480d0d2618/lib/jekyll/filters.rb#L16-L20



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to