Anne Shirley becomes involved with Miss Emily Leith in the story titled "The Little Brown Book of Miss Emily," found in the "Further Chronicles of Avonlea" by L.M. Montgomery. During visits to Grafton, Anne and her friend Diana Barry encounter Miss Emily Leith, an old maiden aunt. Although initially perceived as irritating, Miss Emily's death transforms the story when Anne receives a mysterious parcel containing a book. This book reveals Miss Emily's tragic love story, and both Anne and Diana are deeply moved by it.
For more details, you can read about it on the Anne of Green Gables Wiki.