Thanks David! I think I have it now! I use '#' for the title and '##' for the chapter headings for a text file. After Calibre converts the file to an interim html I bet the h1...hn heading styles would be pulled from custom style sheet. Should there be a blank space between the '=' and the filename? I'm off to experiment!
Paul