Quantcast
Channel: Convert markdown code block markers to criticMarkup syntax - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article

Convert 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
Browsing latest articles
Browse All 3 View Live