| Copyright | Copyright (c) 2021-2025 Travis Cardwell |
|---|---|
| License | MIT |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
LiterateX.Types.TargetFormat
Description
Synopsis
- data TargetFormat
- describe :: TargetFormat -> String
- list :: [TargetFormat]
- mkEndCode :: TargetFormat -> Text
- mkBeginCode :: TargetFormat -> Maybe CodeLanguage -> Bool -> Int -> Text
Type
data TargetFormat Source #
Target format
This sum type defines the supported target formats.
Documentation:
Since: 0.2.1.0
Constructors
| PandocMarkdown | |
| GitHubFlavoredMarkdown | |
| MdBook |
Instances
API
describe :: TargetFormat -> String Source #
Get a description of a target format
Since: 0.0.1.0
list :: [TargetFormat] Source #
List of all supported target formats
Since: 0.0.1.0
mkEndCode :: TargetFormat -> Text Source #
Make line in the target format to end a block of source code
Since: 0.0.1.0
Arguments
| :: TargetFormat | |
| -> Maybe CodeLanguage | |
| -> Bool |
|
| -> Int -> Text | make line for code starting at specified line number |
Make line in the target format to begin a block of code
This function is written to indicate how it is used. Given the target format, optional code language, and line numbering flag, this function returns a function that takes a line number and returns a line.
The MdBook format does not support per-block line numbering, so the line
numbering flag is ignored for that format.
Since: 0.0.1.0