extract source code if note is rst or md

extract source code if note is rst or md
Merge branch 'dev'