Add support for latex fragments
This commit is contained in:
parent
de302bbc0a
commit
76b157b8ce
8 changed files with 137 additions and 10 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue