Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
540 views
in Plugins by
edited by

It seems markdown does not count html tags.

Example to reproduce the issue:
set Minimum length of question body to 100 characters.
question body text:
<p>94 characters here...</p>
So the question body is 101 characters. But It gets the error for min length of question body.

I am using Markdown Editor by Scott https://github.com/svivian/q2a-markdown-editor

Q2A version: 1.8.4

1 Answer

+3 votes
by
selected by
 
Best answer

The basic filter checks the minimum and maximum field size based on the textual representation and real content of the field, respectively.

That means, minimum field size will be checked against the readable characters, which is the ideal scenario from a user perspective. Maximum field size, ideally, would also be checked against readable characters, however, database fields are not infinite so it makes sense that the check is done against the full content, and not just the text.

This is the method that turns user input into the textual representation.

by
pm

-at least 12 characters-
...