Copyright | Copyright (c) 2021-2023 Travis Cardwell |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module implements the target renderer.
Synopsis
- data Options = Options {
- targetFormat :: !TargetFormat
- codeLanguage :: !(Maybe CodeLanguage)
- ignoreShebang :: !Bool
- renderCode :: !Bool
- numberCodeLines :: !Bool
- defaultOptions :: Options
- defaultOptionsFor :: CodeLanguage -> Options
- render :: forall m. Monad m => Options -> ConduitT (Int, SourceLine) Text m ()
Types
Renderer options determine how output is rendered
Since: 0.0.1.0
Options | |
|
API
defaultOptions :: Options Source #
Default options
targetFormat
:PandocMarkdown
codeLanguage
:Nothing
ignoreShebang
:True
renderCode
:True
numberCodeLines
:True
Since: 0.0.1.0
defaultOptionsFor :: CodeLanguage -> Options Source #
Default options for the specified code language
Since: 0.0.1.0