↧
Answer by Sundeep for Convert markdown code block markers to criticMarkup syntax
With awkawk '/```/{f=!f; $0 = f ? "{>>" : "<<}"} 1'/```/ match three backticks anywhere in the input line. You can also use $0 == "```" to match complete line having three backticksf=!f by...
View ArticleAnswer by potong for Convert markdown code block markers to criticMarkup syntax
This might work for you (GNU sed):sed '/```/{s//{>>/;:a;n;s//<<}/;Ta}' fileMatch a line containing ```.Replace that line by {>>.Read/print following lines.When another line matches...
View ArticleConvert markdown code block markers to criticMarkup syntax
I need to convert multiple markdown code blocks to markdown comment blocks using sed. I want to replace the tags but not the text. (my markdown editor has bad support for comments).I have:```FooMore...
View Article
More Pages to Explore .....