Right now, we pass around a list of FormattedTextSegments, which have a slice of the string with formatting information. It may be better if we invert this, so we have the string with a list of the formatting changes. This will make certain parsing operations simpler, since we don't need to merge strings together to check what type of line it is, and it makes other search operations (like for a power marker) much easier.
Right now, we pass around a list of FormattedTextSegments, which have a slice of the string with formatting information. It may be better if we invert this, so we have the string with a list of the formatting changes. This will make certain parsing operations simpler, since we don't need to merge strings together to check what type of line it is, and it makes other search operations (like for a power marker) much easier.