preprocessing markup