Added hooks for reStructuredText mode, fixed file extension anchors.