“…Ionic liquids (ILs) are ionic materials in a liquid state below 100 °C. Poly(IL)s (PILs) incorporate ILs as their repeating units, and show improved mechanical stability and processability compared to ILs [ 21 , 22 , 23 , 24 , 25 ]. Recently, both ILs and PILs, due to their high nitrogen content and thermostability, have been used as precursors to nitrogen-doped carbons under N 2 or in a confined environment [ 21 , 26 , 27 , 28 , 29 , 30 , 31 , 32 ].…”