Giter Club home page Giter Club logo

html2markdown's Introduction

Convert a HTML page to Markdown

Based on turndown NPM package

Usage

name: Convert report
on:
  - pull_request

jobs:
  get-unused-dependencies:
    runs-on: ubuntu-latest
    steps:
      - name: Look for unused librairies
        run: |
          mvn dependency:analyze-report --no-transfer-progress
      - name: Convert HTML to Markdown
        id: html2markdown
        if: always()
        uses: rknj/[email protected]
        with:
          html-file: "target/dependency-analysis.html"
      - name: Create issue with report
        if: always()
        uses: dacbd/create-issue-action@main
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          title: Maven dependency reports (unused dependencies)
          body: |
            ${{ steps.html2markdown.outputs.markdown-content }}
          assignees: rknj
      - name: Show content of generated markdown file
        if: always()
        run: |
          cat ${{ steps.html2markdown.outputs.markdown-file }}

Build

Build the typescript and package it for distribution

$ npm run all

License

This project is released under the MIT License.

html2markdown's People

Contributors

rknj avatar

Stargazers

 avatar  avatar

Watchers

 avatar

html2markdown's Issues

Action doesn't produce output file

I'm using this action in my workflow:

- name: Convert HTML to Markdown
        id: html2markdown
        if: always()
        uses: rknj/[email protected]
        with:
          html-file: "daff-output.html"

I do see markdown output in my job's log, but there is no file produced. I mean - after I didn't see output using "cat ${{ steps.html2markdown.outputs.markdown-file }}", I ran "ls -l" and see nothing.

Please suggest.
TIA, Vitaly

Please, update to node.js 20

When using this action it produces a warning:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: rknj/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-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.