implement function about get attributes from markdown & html file