Add support for latex fragments

This commit is contained in:
Niklas Fasching 2019-09-28 15:03:15 +02:00
parent de302bbc0a
commit 76b157b8ce
8 changed files with 137 additions and 10 deletions

View file

@ -266,6 +266,12 @@ func (w *OrgWriter) WriteEmphasis(e Emphasis) {
w.WriteString(borders[1])
}
func (w *OrgWriter) WriteLatexFragment(l LatexFragment) {
w.WriteString(l.OpeningPair)
WriteNodes(w, l.Content...)
w.WriteString(l.ClosingPair)
}
func (w *OrgWriter) WriteStatisticToken(s StatisticToken) {
w.WriteString(fmt.Sprintf("[%s]", s.Content))
}