Thank you all very much. I tried adding txt file, and it appears inline in both legacy and V10 version. Adding the code as txt format can solve the issue for the future.
BTW, do you have a clue that why some space will remain normal plain txt and the others are other formats? I am still working on wrapping some of my old notes.