Alice in Wonderland

Alice in Wonderland was a book from Earth, as well as the general name by which the book and its sequels were collectively known.

The Fifth Doctor once declared that like Alice, he tried to believe three impossible things before breakfast. (DW: The Five Doctors)

Peri Brown had been reading an omnibus edition of Alice in Wonderland aboard the Doctor's TARDIS before accidentally activating the Doctor's personal reality warp. The device transported her to a world largely based on the book. (DWM: ''Salad Daze)

When the Eighth Doctor was infected by Zagreus, the Doctor's TARDIS gave him hints and aid through a copy of The Alice Compendium from the Doctor's library. The TARDIS also manifested a variety of environments and avatars to help him, among which was the story's forest and Cheshire Cat, who confronted the Doctor with a version of the story's "drink me" puzzle. An evil avatar of the TARDIS, manifested by Zagreus, later summoned a Jabberwock from the book to attack the Doctor. (BFA: Zagreus)

Behind the scenes
The Fifth Doctor was misquoting Alice in The Five Doctors; in the book it's the White Queen, not Alice, who has sometimes believed "as many as six impossible things before breakfast."