(text: string, isRDoc: boolean = false)
| 28 | } |
| 29 | |
| 30 | function getChunkLanguage(text: string, isRDoc: boolean = false) { |
| 31 | if (isRDoc) { |
| 32 | return 'r'; |
| 33 | } |
| 34 | return text.replace(/^\s*```+\s*\{(\w+)\s*.*\}\s*$/g, '$1').toLowerCase(); |
| 35 | } |
| 36 | |
| 37 | function getChunkOptions(text: string, isRDoc: boolean = false) { |
| 38 | if (isRDoc) { |
no outgoing calls
no test coverage detected