I want to move my posts from WordPress to Jekyll and i have a problem with code blocks. I wrote code for replacing original formatting tags with Kramdown tags, but the page does not recognize the formatting marks and treats it like text. Here is code:
{{ content | replace: '[code language=”csharp”]', '~~~<br>' | replace: '[/code]', '<br>~~~' }}
its replacing the original code but it doesn't recognize the formatting pattern. Maybe i need to update it after formation? or is there a method for reformatting markdown text? Or can i perform this operation before converting to HTML? I want to write one method that works for all post.