Git Product home page Git Product logo

Comments (3)

davidgohel avatar davidgohel commented on September 22, 2024 1

Thanks,

If I change output format from officedown::rdocx_document to rmarkdown::word_document, I get the same result.

It seems it's an issue with pander::pandoc.list. For example, this is not a valid list, it's a block code (because indeted with 4 spaces):

The md list generated after "#### Subsection5"

    * Talking Point Parent 
        * Talking Point Child 
        * Talking Point Child  

The result :

* Talking Point Parent 
    * Talking Point Child 
    * Talking Point Child  

To be a valid list, it should be:

The md list after "#### Subsection5"

* Talking Point Parent 
  * Talking Point Child 
  * Talking Point Child  

The result :

  • Talking Point Parent
    • Talking Point Child
    • Talking Point Child

from officedown.

rebecca-hh-rosen avatar rebecca-hh-rosen commented on September 22, 2024

Ah interesting! The particular change in formatting would make sense as a code chunk.

I will also redirect this question over to Pandoc, but do you have any insights on workaround in officedown that could help? I haven't been able to see any direct implementations of pandoc.list() in an officedown context and would be curious if there's an alternative to this process.

from officedown.

rebecca-hh-rosen avatar rebecca-hh-rosen commented on September 22, 2024

UPDATE -- I was able to fix the issue! I still have to do some more sleuthing to figure out exactly what the exact issue(s) were, but it seemed that first instantiating the nested lists as vectors (eg listy <- c() ) as opposed to lists ( eg listy <- list() ) was causing some trouble within pandoc list. Once I changed that and cleaned up the reference doc it worked fine. Thank you so much for your time and contributions!

from officedown.

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.