Used to create a Nitunit module name from a CommonMark section title.
# Strip module name
#
# Used to create a Nitunit module name from a CommonMark section title.
fun strip_module_name(name: String): String do
var b = new FlatBuffer
for c in name do
if c == ' ' then
b.add '_'
else
if not c.is_letter and
not c.is_digit and
not allowed_id_chars.has(c) then continue
b.add c.to_lower
end
end
return b.to_s
end
lib/markdown2/tests/commonmark_gen.nit:105,2--121,4