BEGIN { in_code = 0 } /^```/ { if (in_code == 0) { in_code = 1 } else { in_code = 0 } } function is_proper_name(name) { if (match(name, /(.+)(\W)$/, fields)) { name = fields[1] " " } else name = name " " return index ("MiniGUI MiniGUI-Processes MiniGUI-Threads MiniGUI-Standalone mGUtils mGEff mGPlus mGNCS mGNCS4Touch mStudio miniStudio VxWorks Linux RT-Thread ThreadX uC/OS-II FreeRTOS RTEMS ", name) } { line = "" if (in_code) { if ($1 == "```cplusplus") print "```cpp" else print $0 } else { if (match ($0, /^!\[/)) { print $0 next } if (match ($0, /^\[/)) { print $0 next } else if (match ($0, /^
/)) { print "" next } else if (match ($0, /^\|(.*)$/, fields)) { $0 = "| " fields[1] } else if (match ($0, /^(
)(.*)(<\/center>)$/, fields)) { print "" $0 = fields[2] } else if (match ($0, /^(
)(.*)(

)$/, fields)) { print "" $0 = fields[2] } else if (match ($0, /^
$/)) { print "" next } else if (match ($0, /^<\/center>$/)) { print "" next } else if (match ($0, /\s*