Returns a list of lines from a input markdown file.
(in_file)
| 38 | VALIDS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-&' |
| 39 | |
| 40 | def readLines(in_file): |
| 41 | """Returns a list of lines from a input markdown file.""" |
| 42 | |
| 43 | with open(in_file, 'r') as inf: |
| 44 | in_contents = inf.read().split('\n') |
| 45 | return in_contents |
| 46 | |
| 47 | def removeLines(lines, remove=('[[back to top]', '<a class="mk-toclify"')): |
| 48 | """Removes existing [back to top] links and <a id> tags.""" |