What we want to rebake is all posts for which the cooked representation matches class="hashtag", as far as I can tell.
I don’t think that rebake_match will help here because it matches the raw text, and there is no option for matching against cooked text in the existing rails tasks. So this will, I think, require actual coding, either in the rails console or in a new task.