JK Rowling today hit back at a Liberal Democrat MP who claimed she's revealed a desperation for 'attention and relevance' by being outspoken on trans issues.

The Harry Potter author mocked Ben Maguire, his party's shadow attorney general, over his comments in the House of Commons last night.

Speaking in a debate to mark Pride Month, Mr Maguire singled out Rowling for criticism as he attacked those who had 'poisoned the public discourse'.

'As well as politicians, public figures desperate for attention and relevance such as JK Rowling have poisoned the public discourse with attacks on our trans community,' he told MPs.

'All under the false dichotomy that it is not possible to be a true feminist and protect women's rights without attacking and abusing the trans community.