tlienart / Xranklin.jl

Experimental repo for a refactoring of Franklin.jl
https://tlienart.github.io/Xranklin.jl
MIT License
40 stars 1 forks source link

no method matching FranklinParser.Block(::Symbol, ::String) #82

Open kescobo opened 2 years ago

kescobo commented 2 years ago

https://github.com/kescobo/xranklin-test/

When attempting to build locally with using Xranklin; serve(debug=true):

┌ Warning: Environment 'section' used before it was defined.
└ @ Xranklin /home/kevin/.julia/packages/Xranklin/jJ04e/src/convert/markdown/latex_objects.jl:68
ERROR: MethodError: no method matching FranklinParser.Block(::Symbol, ::String)
Closest candidates are:
  FranklinParser.Block(::Any, ::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/FranklinParser/up5TR/src/utils/types.jl:43
  FranklinParser.Block(::Symbol, ::SubString{String}) at ~/.julia/packages/FranklinParser/up5TR/src/utils/types.jl:61
  FranklinParser.Block(::Symbol, ::SubString{String}, ::Any) at ~/.julia/packages/FranklinParser/up5TR/src/utils/types.jl:61

This is my site using the Academic template. I would say, put this at the very bottom of your priority list, unless the solution is obvious. I've been thinking of trying something different anyway, so I might try out the new site creation workflow, if that would be helpful :-)

tlienart commented 2 years ago

Ah with Academic template this will take a bit more time, long story short it uses FranklinUtils in order to define custom environments so there's a chain of things that need to be updated here.

Possibly it'll just be better to update the template itself and make it an "official" one.

kescobo commented 2 years ago

That makes sense to me!