This commit is contained in:
Michael Teichgräber 2013-01-23 21:51:00 +01:00
parent 5bccaab30c
commit 4626c2b169
3 changed files with 57 additions and 65 deletions

View File

@ -2,10 +2,10 @@ package markdown
import (
"bytes"
"strings"
"fmt"
"os"
"path/filepath"
"strings"
"testing"
)

View File

@ -23,8 +23,8 @@ package markdown
import (
"fmt"
"io"
"strings"
"log"
"strings"
)
const (
@ -854,12 +854,10 @@ DefMarker = &{ p.extension.Dlists } Defmark
%%
/*
* List manipulation functions
*/
/* cons - cons an element onto a list, returning pointer to new head
*/
func cons(new, list *element) *element {
@ -878,14 +876,12 @@ func reverse(list *element) (new *element) {
return
}
/*
* Auxiliary functions for parsing actions.
* These make it easier to build up data structures (including lists)
* in the parsing actions.
*/
/* p.mkElem - generic constructor for element
*/
func (p *yyParser) mkElem(key int) *element {
@ -943,7 +939,6 @@ func (p *yyParser) mkLink(label *element, url, title string) (el *element) {
return
}
/* match_inlines - returns true if inline lists match (case-insensitive...)
*/
func match_inlines(l1, l2 *element) bool {
@ -973,7 +968,6 @@ func match_inlines(l1, l2 *element) bool {
return l1 == nil && l2 == nil /* return true if both lists exhausted */
}
/* find_reference - return true if link found in references matching label.
* 'link' is modified with the matching url and title.
*/
@ -987,7 +981,6 @@ func (p *yyParser) findReference(label *element) (*link, bool) {
return nil, false
}
/* find_note - return true if note found in notes matching label.
* if found, 'result' is set to point to matched note.
*/
@ -1000,7 +993,6 @@ func (p *yyParser) find_note(label string) (*element, bool) {
return nil, false
}
/* print tree of elements, for debugging only.
*/
func print_tree(w io.Writer, elt *element, indent int) {