package parser

import (
	
	
	
)

type thematicBreakPraser struct {
}

var defaultThematicBreakPraser = &thematicBreakPraser{}
NewThematicBreakParser returns a new BlockParser that parses thematic breaks.
func () BlockParser {
	return defaultThematicBreakPraser
}

func ( []byte,  int) bool {
	,  := util.IndentWidth(, )
	if  > 3 {
		return false
	}
	 := byte(0)
	 := 0
	for  := ;  < len(); ++ {
		 := []
		if util.IsSpace() {
			continue
		}
		if  == 0 {
			 = 
			 = 1
			if  == '*' ||  == '-' ||  == '_' {
				continue
			}
			return false
		}
		if  !=  {
			return false
		}
		++
	}
	return  > 2
}

func ( *thematicBreakPraser) () []byte {
	return []byte{'-', '*', '_'}
}

func ( *thematicBreakPraser) ( ast.Node,  text.Reader,  Context) (ast.Node, State) {
	,  := .PeekLine()
	if isThematicBreak(, .LineOffset()) {
		.Advance(.Len() - 1)
		return ast.NewThematicBreak(), NoChildren
	}
	return nil, NoChildren
}

func ( *thematicBreakPraser) ( ast.Node,  text.Reader,  Context) State {
	return Close
}

nothing to do