maaslalani / slides

Terminal based presentation tool

Home Page:http://maaslalani.com/slides/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code execution on file wiht CRLF does not work, fails to parse

AddictArts opened this issue · comments

Describe the bug
Code execution on file wiht CRLF does not work, fails to parse

To Reproduce
Create a text markdown file with CRLF vs LF as the line-endings.

Expected behavior
Execute the code block.

Desktop (please complete the following information):

  • OS: Windows 10, but CRLF can appear on *nix OS filesystems.

This is the guilty line of code

var re = regexp.MustCompile("(?s)(?:```|~~~)(\\w+)\n(.*?)\n(?:```|~~~)\\s?")