def composer_preprocessor(intermediate): """ Performs the following modifications to the intermediate: - [filters.wrap_lists](%/Modules/fitlers.html) is called to warp all consecutive listitem tokens in a list token - Converts images to a base64 encoded string to appear directly in the HTML source - Verbatim blocks have leading whitespace evenly removed to help formatting in the case where verbatim blocks are being read in from formatted source files :param intermediate: The intermediate to process :return: The processed intermediate """ intermediate.ast = filters.wrap_lists(intermediate.ast) intermediate.ast = filters.img64(intermediate.ast) intermediate.ast = filters.untab_verb(intermediate.ast) return intermediate
def composer_preprocessor(intermediate): intermediate.ast = filters.wrap_lists(intermediate.ast) return intermediate