# Data ```lua -- Notes: -- - input: This is the FileMeta (with .path, .name, .stem, .ext) for each file matching the -f glob. -- - file::load(input.path) will return a FileRecord, adding .content for the content of the file. -- - In Lua, to return a dictionary/object, the notation is `{ name = value, … }`. return { file = utils.file.load(input.path) }; ``` # Instruction For the following mardown file file: {{data.file.path}} ```{{data.file.ext}} {{data.file.content}} ``` - Correct english of all the comments if it is a code file (do not correct code, just the comment) - Correct english all content if it is a markdown file - Preserve the whitespace (do not change tabs into spaces and vice versa) - Return the correct content without any explanation # Output ```lua -- Note: LLMs often but not always return a code block for the result. -- The md::outer_block_content_or_raw function will get the content between the first -- and last triple backticks or return ai_response (with .content) if there are no triple backticks. local content = utils.md.outer_block_content_or_raw(ai_response.content) -- Example how to save to the same file utils.file.save(data.file.path, content); -- This will be printed by devai if it is a string return "File processed: " .. data.file.path ```