To render the SVG, it's useful to have a wrapper component that allows passing in additional props:
import React from "react"
import { compiler } from "markdown-to-jsx"
const InlineSvg = ({ content, ...props }) => 
  compiler(content, {
    createElement: (type, elProps, children) =>
 React.createElement(type, { ...elProps, ...props }, children),