kramdown fixes and general tweaks