MarkdownOpenFence

scala.build.internal.markdown.MarkdownOpenFence
See theMarkdownOpenFence companion object
case class MarkdownOpenFence(info: String, tickStartLine: Int, backticks: String, indent: Int)

Representation for an open code block in Markdown. (open meaning the closing backticks haven't yet been parsed or they aren't at all present)

Value parameters

backticks

the backticks string opening the fence

indent

number of spaces of indentation for the fence

info

a list of tags tied to a given code block

tickStartLine

index of the starting line on which the opening backticks were defined

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def closeFence(tickEndLine: Int, lines: Array[String]): MarkdownCodeBlock

Closes started code-fence

Closes started code-fence

Value parameters

lines

input file sliced into lines

tickEndLine

number of the line where closing backticks are

Attributes

Returns

MarkdownCodeBlock representing whole closed code-fence

def toUnclosedBackticksError(mdPath: Path): MarkdownUnclosedBackticksError

Converts the MarkdownOpenFence into a MarkdownUnclosedBackticksError

Converts the MarkdownOpenFence into a MarkdownUnclosedBackticksError

Value parameters

mdPath

path to the Markdown file

Attributes

Returns

a MarkdownUnclosedBackticksError

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product