1970’s/80’s Children’s film comprised a series of animated shorts from books inter-woven with some live actions scenes in a library.
Remember one of the shorts involved a traveler who was killed and buried by a crooked family and buried under a shed. His ghost wouldn’t rest until the new owners of the house found his bones.
Another short had a princess and fire-proof salamander plot line.
Not much to go on, sorry
“CBS Library” The Incredible Book Escape (1980)
You can watch it here: https://www.youtube.com/watch?v=QjfOWmnW55w