Fixing math notation display, improving handling of inline comment markers