Extended data:
There have been records of taking ink as medicine in Tang Dynasty. Throughout the records of medical works in past dynasties, "ink" was mainly used as a hemostatic. For example, when vomiting blood and epistaxis (nosebleeds), you can drink it. Up to now, Tong Ren Tang still has Jingxiangmo, a kind of medicine from the origin of Huimo.
In the "five elements" theory, black belongs to water and red belongs to fire; Water can kill fire, and black can kill red-so black ink can kill red blood. The theory of five elements provided a thinking tool for the ancients to use natural things, and what was proved effective by practice became experience and was preserved; Those that can't stand the test of practice will naturally be eliminated.
Baidu Encyclopedia-Jingmo