View Source Conpipe.Converter.Noop (conpipe v0.0.1-alpha.1)

This converter passes {input, assigns} thru unchanged.

Used for testing.

Summary

Functions

No-op module used for testing

The convert/4 function can be called directly from Tableau.

Functions

Link to this function

convert(arg, converter_opts \\ [])

View Source
@spec convert(
  {input :: String.t(), assigns :: map()},
  options :: keyword()
) :: {output :: String.t(), assigns :: map()}

No-op module used for testing

Link to this function

convert(filepath, front_matter, body, opts)

View Source
@spec convert(
  filepath :: String.t(),
  front_matter :: map(),
  body :: String.t(),
  opts :: map()
) ::
  output :: String.t()

The convert/4 function can be called directly from Tableau.

# config/config.exs
config :tableau, :config,
  url: "http://localhost:4999",
  converters: [
    md: Conpipe.Converter.Noop
  ]

The convert/4 function returns just the converted text. It should not be used in a pipeline.