Since your souce file is a text file, you could simply use
Markdown to mark headings and convert the text file with Calibre to an ePub before editing it with Sigil.
(Select
Convert books > TXT Input > Formatting Style: markdown before you convert the text file to an ePub file.)