fredrikekre/Literate.jl

Multiline string and `#`

mauro3 opened this issue · 3 comments

In a multiline string a # shouldn't do anything. E.g. this errors:

"""
A fn

# Example

An ex.
"""
f(x) = 1

with ERROR: LoadError: LoadError: syntax: incomplete: invalid string syntax in expression starting at string:1

Work-around

"""
A fn

## Example

An ex.
"""
f(x) = 1

Note, this is not tied to doc-strings but in general multi-line strings.

I don't think this can be easily fixed without a Julia parser...

I see, no worries.