Fix: apply custom to_data on marked content