| Copyright | Copyright (c) 2021-2022 Travis Cardwell |
|---|---|
| License | MIT |
| Safe Haskell | None |
| 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.
Since: 0.0.1.0
Constructors
| PandocMarkdown | |
| GitHubFlavoredMarkdown |
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
Note that 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.
Since: 0.0.1.0