@@ -97,6 +97,6 @@ elementToOPML opts (Sec _ _num _ title elements) = do
9797 then return []
9898 else do blks <- mapM fromBlk blocks
9999 writeMarkdown def $ Pandoc nullMeta blks
100− let attrs = [("text", htmlIls)] ++ [("_note", md)]
100+ let attrs = [("text", htmlIls)] ++ [("_note", md) | not (null blocks)]
101101 o <- mapM (elementToOPML opts) rest
102102 return $ inTags True "outline" attrs $ vcat o