I did this same thing a while back and used a fall-through of sorts, that you can see here:
https://github.com/pailhead/three-line-outline/blob/master/src/glsl/outline.vert
So the idea if it is an edge that belongs to the outline, just exit early. Otherwise, let the threshold do it's thing, if it's valid, exit again. In the end, move the vertex outside of ndc and dont rasterize.

I did this same thing a while back and used a fall-through of sorts, that you can see here:
https://github.com/pailhead/three-line-outline/blob/master/src/glsl/outline.vert
So the idea if it is an edge that belongs to the outline, just exit early. Otherwise, let the threshold do it's thing, if it's valid, exit again. In the end, move the vertex outside of ndc and dont rasterize.