mangini / gdocs2md

Convert a Google Drive Document to the Markdown format, suitable for publishing.
Apache License 2.0
2.66k stars 621 forks source link

Multi-part code blocks are mangled #30

Open nomicode opened 9 years ago

nomicode commented 9 years ago

I get this:

`module ListComprehension`

`  def c(comprehension)`

`    parts = comprehension.split(' ')`

`    if parts[0] == parts[2]`

`      eval(comprehension.scan(/\[.*\]/).last)`

`    end`

`  end`

`end`

But I should get this:

module ListComprehension
  def c(comprehension)
    parts = comprehension.split(' ')
    if parts[0] == parts[2]
      eval(comprehension.scan(/\[.*\]/).last)
    end
  end
end