markdown preview and count bashrc fn