diff --git a/markdown.go b/markdown.go index a18cb23..ad28c5c 100644 --- a/markdown.go +++ b/markdown.go @@ -58,7 +58,7 @@ func Parse(text string, ext Extensions) *Doc { func (d *Doc) parseRule(rule int, s string) { m := d.parser if m.ResetBuffer(s) != "" { - log.Exitf("Buffer not empty") + log.Fatalf("Buffer not empty") } if !m.Parse(rule) { m.PrintError() diff --git a/output.go b/output.go index e8c7b17..d40b17a 100644 --- a/output.go +++ b/output.go @@ -181,7 +181,7 @@ func (w *htmlOut) elem(elt *element, obfuscate bool) *htmlOut { w.elist(elt.children, obfuscate) case RAW: /* Shouldn't occur - these are handled by process_raw_blocks() */ - log.Exitf("RAW") + log.Fatalf("RAW") case H1, H2, H3, H4, H5, H6: h := "h" + string('1'+elt.key-H1) + ">" /* assumes H1 ... H6 are in order */ w.pad(2).s("<").s(h).elist(elt.children, obfuscate).s("