Skip to content

Using python3 as the language of a multiline codeblock results in an error #1074

@Seelengrab

Description

@Seelengrab

The codeblock:

    ```python3
 
    foo
    ```

The error:

→ Initial full pass...
┌ Franklin Warning: in <index.md>
│ Encountered an issue processing 'index.md' in <article>
│ Verify, then re-start the Franklin server.
│ The error is displayed below:
│ ErrorException("type Nothing has no field captures")
└
ERROR: type Nothing has no field captures
Stacktrace:
  [1] getproperty(x::Nothing, f::Symbol)
    @ Base ./Base.jl:37
  [2] parse_fenced_block(ss::SubString{String}, scut::Bool; shortcut::Bool, repl::Bool, shell::Bool, pkg::Bool, help::Bool)
    @ Franklin ~/.julia/packages/Franklin/R3VpM/src/eval/codeblock.jl:29
[...]

I've omitted the rest of the stacktrace, since the issue seems to be located in that function. I think the regex chosen here (CODE_3_PAT) just doesn't take the 3 into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions