-# It's possible to reference another file, like this : [[pycco.py]] or a specific function of
-# another file, like this: [[file#func]]
- def repl(match):
- return "[%s](%s)" % (match.group(1), path.basename(destination(match.group(1))))
+# It's possible to reference another file, like this : [[pycco.py]] or a specific section of
+# another file, like this: [[pycco.py#Highlighting]]. Of course, sections have to be manually declared before,
+# A section name is written on a single line, and surrounded by equals signs, === like this ===
+def preprocess(comment, section_nr):
+ def sanitize_section_name(name):
+ return name.strip().split(" ")[0]