On the equivalence between Gibbs and Markov processes