framer-moreutils icon indicating copy to clipboard operation
framer-moreutils copied to clipboard

Multiline support for toMarkdown()

Open bruskowski opened this issue 7 years ago • 0 comments

Support for strings with line breaks for the toMarkdown() function. (Framer keeps every line in a separate <div/>, thus a loop is needed.)

I basically changed one line and adjusted the intendation of the toMarkdown() function. All the other changed lines are probably caused by Atom editor, sorry about that.

  • el = textLayer._element.children[1].children[0].children[0]
  • for line in textLayer._element.children[1].children
  • el = line.children[0]

bruskowski avatar Feb 16 '18 11:02 bruskowski