Fix error about wrong parameter type for format_text() #116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I have some annotations in the PDF and I click the question tab, then an error appears:
![2024-08-20_18-26](https://private-user-images.githubusercontent.com/5969124/359563298-f71fddee-b01b-4fe2-9b6e-f221d3f7ed83.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTMwNjIsIm5iZiI6MTczOTYxMjc2MiwicGF0aCI6Ii81OTY5MTI0LzM1OTU2MzI5OC1mNzFmZGRlZS1iMDFiLTRmZTItOWI2ZS1mMjIxZDNmN2VkODMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDk0NjAyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MjlkNWRkMDUwYTkwOWE4YjcwZDk5OTMwYzg1NjVjMzBhMjZkMjJiYTE1NTYyNTcwZTAzN2I3Yjg5YzQ1NGRlZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.jTVADX08QpCK_rSu-biVOr5TPO0ncxKwnEn8UAXhFxw)
This is due because the second argument of the format_text() function is the format type which is a string and defaults to FORMAT_MOODLE.