Giter VIP home page Giter VIP logo

brewdown's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brewdown's Issues

Bullet point font change

When combining stat blocks and bullet points, the bullet font seems to jump back to serif and it looks messy.

ngAnnotate / Browserfy

When using this in a project that uses ngAnnotate and browserfy, I get errors due to the ES6 syntax. Any chance you'd consider reworking things a bit so it can be used like other markdown-it plugins?

Simple page cover doesn't really work.

Hey!

I am currently looking for some tools to write down some notes and found this one. Looks super cool but I have some problems with it. I juse it the following way:

const Markdown = require('markdown-it');
const markdownInclude = require('markdown-it-include');
const brewdown = require('brewdown')
const glob = require('glob')

const fs = require('fs')
const path = require('path')

const args = process.argv.slice(2);
const folder = path.resolve(args[0]);

const md = new Markdown().use(brewdown, { style: "two-col", pageSize: "a4" });

glob(`${folder}/**/*.md`, {}, (err, files) => {
    if (err) console.error(err);
    
    files.forEach(file => {
        const filename = path.basename(file, path.extname(file));
        const folderPath = path.dirname(file);

        const content = fs.readFileSync(file, 'utf-8');
        const html = md.render(content);

        const htmlFilePath = path.resolve(folderPath, `${filename}.html`);
        fs.writeFileSync(htmlFilePath, html);
    });
});

Basically it iterates over each .md file and generates the html file alongside of the source used.

Now I tried it with the following content, expecting to get a cover page plus a simple text line on the next one but after opening the file in my browser I simply got the rendered text without any formatting or style.

::: cover
# Lost Mine of Phandelver
#### A smaller tl;dr version of the introduction story line
:::

\newpage

Test1

No css in rendered html

Hi there,
I wanted to try this, as I usually use markdown for my dnd game notes and content, but I couldn't manage to get the CSS working.

I have a simple script that i run on my md files:

const Markdown = require('markdown-it');
const brewdown = require('brewdown');
var fs = require('fs');

const contentFile = "test.md";
const md = new Markdown().use(brewdown, {style: "two-col", pageSize: "letter"});
var content = fs.readFileSync(contentFile, "utf-8");
const html = md.render(content);
// console.log(html)
fs.writeFile('content.html', html, (err) => { 
    if (err) throw err;
})

But the result of an example from Your projects looks like this:
Zrzut ekranu 2019-09-7 o 13 58 12

Could you point me in the right direction here?
Cheers

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.