Code Monkey home page Code Monkey logo

pandoc-markdown-css-theme's Introduction

pandoc-markdown-css-theme

https://jez.io/pandoc-markdown-css-theme/

Developing

make
make watch

More instructions in the Usage section of the website above.

License

HTML, CSS, and and JavaScript code is licensed under the Blue Oak Model License. See LICENSE.md

Text and images are licensed under CC-BY-SA 4.0. See: https://creativecommons.org/licenses/by-sa/4.0/

This project does not provide a license for any fonts distributed in this project. You must acquire your own license for proprietary fonts distributed with this project.

pandoc-markdown-css-theme's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar

pandoc-markdown-css-theme's Issues

sidenote numbering not incrementing

sidenotes do not numerically increment. all of the sidenotes have the number '1'. it seems like there may be a conflict with the katex.min.css. if this line is commented out:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" />

the sidenotes increment correctly.

nav#TOC max-width bug?

It looks like applying max-width: var(--main-width); to nav#TOC on line 881 might be an error.

It overwrites the calculated max-width from line 820.

With line 881, I have problems with the contents pane interfering with image placement in the main document.
When I delete line 881 the problems go away.

@media screen and (min-width: calc(745px + 2 * (52px + 206px + 52px))) {
header,
nav#TOC,
main,
footer {
max-width: var(--main-width);
}

@media screen and (min-width: calc(745px + 2 * (52px + 206px + 52px) - 1px)) {
header {
margin-bottom: var(--line-height);
}
.date.before-toc {
padding-bottom: initial;
}
nav#TOC {
/* Unset some styles for small screen width */
margin-bottom: initial;
border-left: initial;
padding-left: initial;
position: sticky;
margin-top: calc(var(--nav-toc-baseline-offset));
float: left;
top: var(--line-height);
font-size: var(--nav-toc-font-size);
color: var(--color-text-secondary);
margin-left: var(--line-height);
max-width: calc((100vw - var(--main-width)) / 2 - 2 * var(--line-height));
max-height: calc(100vh - 2 * var(--line-height));
overflow-y: scroll;
}

Baseline mismatch for side notes on mobile

It's hard to see in this picture, but the problem is there.

IMG_A608BF359A11-1

The baseline of the side notes are 2px higher when viewed on iOS in landscape mode zoomed out at 85% on an iPhone 12 to allow for the side notes to show up.

The first line of the sidenotes and and the body text should have their baselines aligned.

make error

I cloned the repository, installed pandoc and pandoc-sidenote in a virtual environment via conda/pip. I made sure that pandoc-sidenote is in PATH. I then follow the instructions: make clean and then make. Here the error:

tools/build.sh "src/paper/index.md" "docs/paper/index.html"
pandoc-sidenote: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,20].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:107:64 in pandoc-types-1.20-BxsEriGxqLC6PnOiTnNIPK:Text.Pandoc.JSON
Error running filter pandoc-sidenote:
Filter returned error status 1
make: *** [Makefile:39: docs/paper/index.html] Error 83

Any help appreciated. Thank you.

Too much gap between body text and wide things

Because there's a wrapping <div> in the way, the --line-height worth of margin outside the .wide things and inside the wide things doubles up, disrupting the rhythm.

Screen Shot 2021-06-27 at 12 32 10 AM

The first two gaps are good. The third gap is double the height of the others.

Logo or Page Numbers at bottom when Print to pdf from html ?

Hi Jez,
very helpful project and I'm using it a lot .
I'm not entirely sure how one would go about it but how would I be able to get page numbers at the bottom ?
currently I'm using this to get the html files and then print to pdf via the browser..
it would be nice if it was possible to do both steps at once also.

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.