Git Product home page Git Product logo

concat-md's People

Contributors

kusstar avatar minhir avatar ozum avatar xdan avatar

Stargazers

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

Watchers

 avatar  avatar

concat-md's Issues

Ignore not working

The ignore option is passing the "ignore" option to globby. But globby doesn't have such option.

Problem to understand how works --decrease-title-levels

Hello

I'm probably doing something wrong: I've a folder called userguide with one readme.md and one subfolder by chapter. Each folder has his own index.md.

So, I've four .md files

└─ doc
   └─ userguide
         ├─ readme.md
         ├─ Chapter 1
         │  ├─ index.md
         ├─ Chapter 2
         │  ├─ index.md
         ├─ Chapter 3
         │  ├─ index.md
   └─ concat.bat

In my parent doc folde, I've a concat.bat script with this command : concat-md --decrease-title-levels userguide

So, my understanding was: the four markdown files will be taken and, with respect to the folder's hierarchy, level of title will be decreased (H1 will become H2).

But no, it doesn't work like that.

I get this:

<a name="readmemd"></a>
# My amazing doc (readme.md)

<a name="chapter-1indexmd"></a>
# Chapter 1 (chapter1/readme.md)

<a name="chapter-2indexmd"></a>
# Chapter 2 (chapter2/readme.md)
## Chapter 2.1

<a name="chapter-3indexmd"></a>
# Chapter 3 (chapter3/readme.md)
## Chapter 3.1
## Chapter 3.2

My expectation was to get ## Chapter 1 i.e. the H1 in chapter 1/index.md becomes a H2.

Does --decrease-title-levels shouldn't follow how deep the tree-structure is ?

Dummy markdown files used

Thanks!

Upgrade dependencies?

I am using concat-md together with typedoc, which is exactly the same way how the documentation in this repo is generated. It his quite useful. Thank you!

NPM complains about some outdated dependencies of concat-md. I can see there are some PRs here not being handled for a long time.

So just wonder, is this repo still be maintained? Any chance to get dependencies upgraded?

Feature request: fix links

This looks good @ozum! I haven't tried it yet, but since it isn't listed I presume this isn't implemented yet: is it possible to fix relative links? For example, when one markdown file refers to another, or even to a heading in another, those could be changed to refer to the relevant heading in the concatenated file.

So e.g.

README.md

# Read me

Here's a cool reference to [more info](more-info.md#the-info).

more-info.md

# More info
Hi there, want more info?

## The info

Here's more info.

This could result in:

concatenated.md

# Read me

Here's a cool reference to [more info](#the-info).

# More info

Hi there, want more info?

## The info

Here's more info.

(And another request: perhaps the README of this project could also give a small example of two input files and the resulting concatenated file.)

Thanks for picking this up!

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.