From a supramolecular tetranitrile to a porous covalent triazine-based framework with high gas uptake capacities.