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)

Attributes

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

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

Members list

Concise view

Value members

Concrete methods

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

Closes started code-fence

Closes started code-fence

Attributes

lines

input file sliced into lines

tickEndLine

number of the line where closing backticks are

Returns:

MarkdownCodeBlock representing whole closed code-fence

def toUnclosedBackticksError(mdPath: Path): MarkdownUnclosedBackticksError

Converts the MarkdownOpenFence into a MarkdownUnclosedBackticksError

Converts the MarkdownOpenFence into a MarkdownUnclosedBackticksError

Attributes

mdPath

path to the Markdown file

Returns:

a MarkdownUnclosedBackticksError

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product