[CyberChef] Recipe for pre-processing LLM outputs
Had to pre-process markdown output from ChatGPT.
The requirement is simple:
- Converting each numbered list item into h4
- Removing the indent for each item, so that they are not rendered as code-blocks.
Find_/_Replace({'option':'Regex','string':'^(\\d+)'},'#### $1',true,false,true,false)
Find_/_Replace({'option':'Regex','string':'^([ ]+\\-)'},'-',true,false,true,false)