Author here. This was fun to make, although I'm sure this algorithm is absolutely nothing new.
An implementation of this for rendering tables as rst-style ascii is available here: https://github.com/Snaipe/table2ascii
As always, suggestions are welcome.