and tags
pre_tag_stashes = []
r.gsub!(//m) do |matched|
pre_tag_stashes.push(matched)
"@@tdiary_style_gfm_pre_tag#{pre_tag_stashes.length - 1}@@"
end
code_tag_stashes = []
r.gsub!(//m) do |matched|
code_tag_stashes.push(matched)
"@@tdiary_style_gfm_code_tag#{code_tag_stashes.length - 1}@@"
end
# 4. Convert miscellaneous
if pre_tag_stashes.none? && code_tag_stashes.none?
# Link only text outside of tags, leaving @ in attributes like