summaryrefslogtreecommitdiffstats
path: root/vendor/gitlab.com/golang-commonmark/markdown/inline.go
blob: 0bed18acf88619c025ad20ef4ebe210690240a5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2015 The Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package markdown

func ruleInline(s *StateCore) {
	for _, tok := range s.Tokens {
		if tok, ok := tok.(*Inline); ok {
			tok.Children = s.Md.Inline.Parse(tok.Content, s.Md, s.Env)
		}
	}
}