Extracted markdown compilation to a separate class