Giter Site home page Giter Site logo

jacob-pro / mdbook-bibfile-referencing Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 106 KB

An mdBook preprocessor to add bibfile referencing to each page

License: GNU Lesser General Public License v2.1

Rust 88.31% TeX 3.15% Dockerfile 6.28% Makefile 2.26%
mdbook mdbook-preprocessor mdbook-pandoc pandoc-citeproc rust citeproc

mdbook-bibfile-referencing's People

Contributors

dependabot[bot] avatar jacob-pro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mdbook-bibfile-referencing's Issues

Deal with Latex and syntax highlighting

This preprocessor breaks syntax highlighting and Latex equations (via mathjax).

When mdbook-bibfile-referencing is disabled:
before

When it is enabled :
after

The code I used:

# Chapter 1

\\[\mu = \frac{1}{N} \sum_{i=0} x_i\\]

```C
#include <stdio.h>

int main() {
    printf("Hello world!\n");
    return 0;
}

Feature Request: Clickable Citations

The pandoc has a feature to generate clickable citations. It is a valuable feature to generate web pages with clickable citations. I had tried to add a line:

p.add_option(PandocOption::Meta("link-citations".into(), Some("true".into())));

after this line

p.add_option(PandocOption::Csl(csl));
, to enable the clickable citation, which, for sure did generated citations with <a href="#ref-id" >...</a> tags, but the ref-ids are missing from the generated bibliography. This result in a failure to jump to the reference item when clicked. It seems this preprocessor is ignored some information generated by pandoc.

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.