3 ## module to read meta in header of md file
5 ## md-header [md_filepath] [header_name]
7 [ "$#" -ne 2 ] && { echo "Incorrect usage"; exit 1; }
12 published) propname=published;;
14 description) propname=description;;
15 userlocal1) propname=userlocal1;;
16 userlocal2) propname=userlocal2;;
20 sed -nE "s/^-- ${propname}: (.*)$/\1/p" "$1"