Add logic and spec for inline output.
Create a mock factory for inline plugins.
Create a mock factory for block plugins.
Create a mock factory for block plugins.
Remove the usage of unnecessary variables.