()
| 3 | |
| 4 | |
| 5 | def get_new_toc(): |
| 6 | new_toc = check_output( |
| 7 | 'node_modules/.bin/markdown-toc README.md', |
| 8 | shell=True |
| 9 | ).decode('utf-8') |
| 10 | |
| 11 | pattern = ['<!-- toc -->', '', new_toc, '', '<!-- tocstop -->'] |
| 12 | |
| 13 | return '\n'.join(pattern) |
| 14 | |
| 15 | |
| 16 | def get_readme(): |