2from pandoc import toJSONFilter
6Pandoc filter that causes everything between
7'<!-- BEGIN COMMENT -->' and '<!-- END COMMENT -->'
8to be ignored. The comment lines must appear on
9lines by themselves, with blank lines surrounding
20 if re.search("<!-- BEGIN COMMENT -->", s):
23 elif re.search("<!-- END COMMENT -->", s):
27 return [] # suppress anything in a comment
29if __name__ == "__main__":
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list