Git Product home page Git Product logo

Comments (3)

yutannihilation avatar yutannihilation commented on June 18, 2024

Hi, thanks for using conflr! I think you can convert the HTML to a Markdown file first by pandoc, and then you can add the YAML front-matter and rename it to .Rmd.

https://rmarkdown.rstudio.com/docs/reference/pandoc_convert.html

from conflr.

datapixie avatar datapixie commented on June 18, 2024

Hmm I must be doing that wrong -- I tried

rmarkdown::pandoc_convert("/path/to/test.html",
                          output = "/path/to/test.md")

# Rename test.md to test2.Rmd

conflr::confl_create_post_from_Rmd("/path/to/test2.Rmd",
  interactive = FALSE,
  title = "Test",
  space_key = "SPACE",
  parent_id = 63322513,
  toc = TRUE,
  toc_depth = 7,
  code_folding = "hide",
  update = TRUE,
  minor_edit = TRUE)

And get the error:

Checking the existing images...
Uploading the images...
Error in httr::upload_file(path) : file.exists(path) is not TRUE

I also tried pasting the Yaml info at the top of test2.Rmd but got the same error. Doing conflr::confl_create_post_from_Rmd("/path/to/test.Rmd", ...) works fine...

from conflr.

yutannihilation avatar yutannihilation commented on June 18, 2024

Sorry, I forgot to comment. It seems the image path needs some tweak to let conflr to find the actual file.

Anyway, I decided to close this issue as supporting the already rendered HTML is out of scope of conflr... Sorry!

from conflr.

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.