Skip to main content
2 of 2
Commonmark migration

I think you mix up two things in your question. One is the issue of whether a single img tag constitutes a valid webpage and a valid MCVE. I have no idea, is not my tag. If it does, this is a non-issue. Educate the general public about the fact that it already is an MCVE. Nothing to see here, move along.


Assuming the more interesting case, where it isn't well-formed html, and doesn't constitute an MCVE technically... is the boilerplate code really necessary?

Yes

I'd argue it is. For you as the one writing the answer it might be blindingly obvious, which parts where necessary for you to spot the issue. I think we should assume the OP did not have that insight. After all he came here asking that question, it's safe to assume he is missing a vital piece of information. The OP should build that MCVE anyway. For their sake. Because it might solve the issue before even asking the question. So actually posting it in full is zero extra effort. So the OP already has this MCVE siting in their clipboard, has no idea which part of it is causing their problem... and yet, we are ok with them leaving out random parts, they guess are not the problem? That sounds stupid. We are losing good information that was already available. A full MCVE is a full MCVE because it's useful.

In your example, assuming the boilerplate were technically necessary, how would the OP know the missing title and body did not change their result? Well, only by already having it and running it. So why do the extra work of deleting that information, when you already have it in full? Doesn't make sense. Just paste it into the post.

nvoigt
  • 77.1k
  • 5
  • 45
  • 62