I may be swimming upstream on this, but smoke inhalation of any kind reduces serum oxygen levels in the bloodstream, with clear and obvious detriment to the baby's health.
By way of purely anecdotal evidence, my ex-wife was pregnant at the same time as a mutual friend. My ex gave up smoking cigarettes and weed for her pregnancy, while our friend did not. In fact, our friend often smoked with the express intention of getting her baby to stop kicking.
My friend's baby was born underweight, required additional care at the hospital and is mildly developmentally disabled- and still under size for his age and somewhat frail.
Our daughter has been thriving with no health issues but braces- and was recently accepted into her school's gifted and talented program.
Highly unscientific and only one 'side by side' does not a solid conclusion make- but I'm convinced; don't smoke anything or drink alcohol while pregnant.
PLEASE... for your baby's health and future.
Regarding edibles, seek a doctor's advice. Lots of drugs generally considered safe for adults are not for use during pregnancy, and cannabis is definitely 'strong medicine'. If in doubt, don't eat it.