Transplant markdown title line function to smartinput