def read_inline_code(src, con)
num_ticks = 0
while src.cur_char == '`'
num_ticks += 1
src.ignore_char
end
end_string = "`" * num_ticks
if num_ticks > 1 && !src.next_matches(/.*#{Regexp.escape(end_string)}/)
con.push_element md_entity('ldquo')
src.ignore_chars(2)
return
end
code = read_simple(src, nil, nil, end_string)
if !code || src.cur_char != '`'
con.push_element(end_string + (code || '')) and return
end
src.ignore_chars num_ticks
if num_ticks > 1 && code[0, 1] == ' '
code = code[1..-1]
end
if num_ticks > 1 && code[-1, 1] == ' '
code = code[0..-2]
end
con.push_element md_code(code)
end