Add a class method into MarkupCalculator

A alias method to encapsulates the internal implementation, in order to
facilitate the client of the lib