Giter Site home page Giter Site logo

Comments (5)

RickStrahl avatar RickStrahl commented on June 6, 2024

Can you try the regular Markdown Parser, not the DocFx one?

It looks to me based on the error message, the problem occurs in the DocFx parser (which I don't control entirely - it's a libary that sits ontop of the MarkDig Engine used as the main parser).

from markdownmonster.

RickStrahl avatar RickStrahl commented on June 6, 2024

FWIW, if I run this with the regular parser it works fine:

image

Then tried it with the DocFx parser and that's not wrorking.

I took a quick look and the problem is that the DocFx parser requires a bunch of context in order to render (ie. an ActiveDocument) which is why this is failing from the CLI but works when you render from the editor - there's no active document at that time when running from the CLI. I'll need to see if I can fix this, or whether I turn off the output generation for DocFx.

from markdownmonster.

Trystan-SA avatar Trystan-SA commented on June 6, 2024

Yes its working fine now. DocFX was indeed causing the issue ! Thanks for that !

from markdownmonster.

RickStrahl avatar RickStrahl commented on June 6, 2024

I took a quick look and the problem is that the DocFx parser requires a bunch of context in order to render (ie. an ActiveDocument) which is why this is failing from the CLI but works when you render from the editor - there's no active document at that time when running from the CLI. I'll need to see if I can fix this, or whether I turn off the output generation for DocFx.

It actually works from within the UI - it's only in the CLI it's failing.

I think the solution is to create the actual document from the markdown file before passing to the parser.

from markdownmonster.

RickStrahl avatar RickStrahl commented on June 6, 2024

The problem is that the DocFx parser requires additional state that is not available in the CLI. For now I've disabled exports from the CLI if the DocFx parser is active along with a message:

image

If the DocFx parser output is required, it's still possible through the Main UI.

from markdownmonster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.