I would like to replace my under cabinet kitchen range hood.
The old range hood was direct wire, but the new one is plug in.
I have a a hot, neutral, and ground wire under the cabinet (to the right of the vent in the wall in the picture). The hot and neutral wires is sufficient length to reach into the cabinet above, but the romex sheath isn't long enough.
Is it allowed by code to have the hot and neutral wires run without romex sheath into a new electrical outlet box that I install inside the cabinet above the current location of the wires? I would also extend the ground wire (via a wirenut and another length of ground wire) into the electrical box inside the cabinet as well?
If it's not allowed, what can I do?