Custom nested html tag and paragraph

I am having trouble to achieve having a text with nested quotes. For example, I would like to achieve this: “Lorem ‘ipsum’ dolor”

I started by creating a custom tag as follows

const doubleQuote = {
  content: "block+",
  group: "block",
  toDOM() { return ["q", 0] },
  parseDOM: [{tag: "q"}],

Unfortunately the code:


is transformed automatically to 


Is there any way to get rid of the paragraphs, so I can have my text in a row?