Giter VIP home page Giter VIP logo

obsidian-pandoc's People

Contributors

ab1908 avatar clemens-e avatar kostapc avatar lishid avatar oliverbalfour avatar phillipjohnston avatar taurelas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

obsidian-pandoc's Issues

Update? And transcluding images?

Have there been any updates to this plugin?

And I'm still having issues when I try to convert a file to OpenDocument (but probably also other formats) with images. I get the following error message, I assume it means that pandoc can't find the image?

image

Thanks!

How to install, given new ownership?

The fork here is a little confusing. I understand why it exists, but is this codebase now where the Community plugins UI is pulling from, or do I need to manually install this version?

I think if this switch is happening, it should probably fully happen, ie. the community plugins should point to this repo, the readme links should be updated to point here instead of at the old repo, etc.

If this is welcome I can probably do this myself and submit a PR, but I want to coordinate about it first.

Doesn't render Linked files

perhaps it's the unicode used..

![[๐Ÿšฉ - โœ… Yoshi]]

renders as [[๐Ÿšฉ - โœ… Yoshi]]

The standard Export to PDF doesn't have this issue. But it seems like all of the Pandoc plugins fail at this. I was hoping to be able to export to Docx due to business needs.

PdfLatex custom path not used

I think I found a quite bad bug, but I want other eyes on it to verify.

There is a setting in the plugin that allows the user to input their own custom path for pdflatex, in case it's not accessible on the user's PATH.

The code that spawns the pandoc process tries to use this path in the following way:

  1. Make a copy of the process.env object:
    const env = Object.assign(process.env);
  2. If a custom pdflatex path is provided, update the copied env object with that new path:
    env.PATH += path.dirname(input.pdflatex);
  3. Totally ignore the modified copy, and just pass in the normal process.env anyway:
    pandoc = spawn(input.pandoc || 'pandoc', args, { env: process.env });

So the custom pdflatex path is actually never used, and the only way this plugin can ever generate pdfs is if pdflatex actually is on the user's PATH.

I think the fix is simply to change line 161 to:

pandoc = spawn(input.pandoc || 'pandoc', args, { env: env });

Thoughts?

Do all PDFs really need pdflatex?

When the plugin checks for features one of the checks is does is whether the target output type needs pdflatex to run. That check is exactly:

export function needsLaTeX(format: OutputFormat): boolean {
return format === 'pdf';
}

In other words, the plugin will not generate any pdfs unless pdflatex is also installed.

I suspect this is wrong and that many pdfs can be generated without pdflatex, but I don't know the details and might be wrong.

If I'm not wrong, I'm not sure how to fix it. We need a way to detect whether a particular file needs pdflatex to convert, but I don't know what that check would look like.

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.