| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.Drasil.JSON.Helpers
Description
Defines helper functions for creating jupyter notebooks.
Synopsis
- data Variation
- markdownCell :: Doc -> JSON
- codeCell :: Doc -> JSON
- makeMetadata :: [(Text, JSON)]
- tr :: Doc -> Doc
- td :: Doc -> Doc
- figure :: Doc -> Doc
- li :: Doc -> Doc
- pa :: Doc -> Doc
- ba :: Doc -> Doc
- ol :: [String] -> Doc -> Doc
- ul :: [String] -> Doc -> Doc
- table :: [String] -> Doc -> Doc
- wrap :: String -> [String] -> Doc -> Doc
- wrap' :: String -> [String] -> Doc -> Doc
- refwrap :: Doc -> Doc -> Doc
- refID :: Doc -> Doc
- reflink :: String -> Doc -> Doc
- reflinkURI :: String -> Doc -> Doc
- image :: Doc -> Maybe Doc -> MaxWidthPercent -> Doc
- h :: Int -> Doc
- br :: Doc -> Doc
- mkDiv :: String -> Doc -> Doc -> Doc
- stripnewLine :: String -> Doc
Types
Jupyter-related
markdownCell :: Doc -> JSON Source #
Construct a Jupyter markdown cell with the given content.
makeMetadata :: [(Text, JSON)] Source #
Generate the metadata necessary for a notebook document.
HTML Tag Wrappers
stripnewLine :: String -> Doc Source #