diff options
Diffstat (limited to 'vendor/gitlab.com/golang-commonmark/markdown/align.go')
-rw-r--r-- | vendor/gitlab.com/golang-commonmark/markdown/align.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/gitlab.com/golang-commonmark/markdown/align.go b/vendor/gitlab.com/golang-commonmark/markdown/align.go new file mode 100644 index 00000000..bcb63600 --- /dev/null +++ b/vendor/gitlab.com/golang-commonmark/markdown/align.go @@ -0,0 +1,26 @@ +// 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 + +type Align byte + +const ( + AlignNone = iota + AlignLeft + AlignCenter + AlignRight +) + +func (a Align) String() string { + switch a { + case AlignLeft: + return "left" + case AlignCenter: + return "center" + case AlignRight: + return "right" + } + return "" +} |