Giter Club home page Giter Club logo

pandocplay's Introduction

Hi there 👋

GitHub Stats Card

pandocplay's People

Contributors

dependabot[bot] avatar niszet avatar

Watchers

 avatar

pandocplay's Issues

Add an option to add output format at the top of code block

Currently, output result will be surrounded by ```...``` without any labels. Specified output format by --to option should be added after ``` .

For example, run with --to option following selection,

Known Issues

It should be

```html
<h2 id="known-issues">Known Issues</h2>
```

with html format which specified by --to.

Huuuuuuuuuuuuuuuuu

What's magical!?!?!?!?
This pages Animation!!!!!
Fantastic!!!!!!

Option to display .bib fetched citations directly in the markdown

Hi there @niszet ,

I just found your plugin which is really nice.
The problem that I am habiing is that I want to display citations (bibliographical references) fetched from a .bib formatted file and display them in the markdown directly. Theay are currently some option to find bibliography and display via pandoc in the preview but these plugin (https://shd101wyy.github.io/markdown-preview-enhanced/#/) are not compatible with another one that I am using (https://marketplace.visualstudio.com/items?itemName=dendron.dendron-markdown-preview-enhanced). So I would really love to display the citations directly in the md file.

Using your plugin I can display them the original pandoc format

see output here 👍

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
  <meta charset="utf-8" />
  <meta name="generator" content="pandoc" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  <title>runpandoctmp</title>
  <style>
    code{white-space: pre-wrap;}
    span.smallcaps{font-variant: small-caps;}
    span.underline{text-decoration: underline;}
    div.column{display: inline-block; vertical-align: top; width: 50%;}
    div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
    ul.task-list{list-style: none;}
    .display.math{display: block; text-align: center; margin: 0.5rem auto;}
  </style>
  <!--[if lt IE 9]>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  <![endif]-->
</head>
<body>
<p><span class="citation" data-cites="Brown2012a">Brown and Okuno (2012)</span></p>
<p><span class="citation" data-cites="Gerwick2012a">Gerwick and Moore (2012)</span></p>
<p><span class="citation" data-cites="Blunt2009">Blunt et al. (2009)</span></p>
<p><span class="citation" data-cites="jimenez-lunaDrugDiscoveryExplainable2020">(<span class="citeproc-not-found" data-reference-id="jimenez-lunaDrugDiscoveryExplainable2020"><strong>???</strong></span>)</span></p>
<div id="refs" class="references hanging-indent" role="doc-bibliography">
<div id="ref-Blunt2009">
<p>Blunt, John W, Brent R Copp, Wan-Ping Hu, Murray H G Munro, Peter T Northcote, and Michèle R Prinsep. 2009. “Marine natural products.” <em>Natural Product Reports</em> 26 (2): 170–244. <a href="https://doi.org/10.1039/b805113p">https://doi.org/10.1039/b805113p</a>.</p>
</div>
<div id="ref-Brown2012a">
<p>Brown, J. B., and Yasushi Okuno. 2012. “Systems Biology and Systems Chemistry: New Directions for Drug Discovery.” <em>Chemistry &amp; Biology</em> 19 (1): 23–28. <a href="https://doi.org/10.1016/j.chembiol.2011.12.012">https://doi.org/10.1016/j.chembiol.2011.12.012</a>.</p>
</div>
<div id="ref-Gerwick2012a">
<p>Gerwick, William H, and Bradley S Moore. 2012. “Lessons from the past and charting the future of marine natural products drug discovery and chemical biology.” <em>Chemistry &amp; Biology</em> 19 (1): 85–98. <a href="https://doi.org/10.1016/j.chembiol.2011.12.014">https://doi.org/10.1016/j.chembiol.2011.12.014</a>.</p>
</div>
</div>
</body>
</html>

But I would rather like to have something like this :

  • Blunt, John W, Brent R Copp, Wan-Ping Hu, Murray H G Munro, Peter T Northcote, and Michèle R Prinsep. 2009. “Marine natural products.” Natural Product Reports 26 (2): 170–244. https://doi.org/10.1039/b805113p
  • Brown, J. B., and Yasushi Okuno. 2012. “Systems Biology and Systems Chemistry: New Directions for Drug Discovery.” Chemistry & Biology 19 (1): 23–28. https://doi.org/10.1016/j.chembiol.2011.12.012
  • Gerwick, William H, and Bradley S Moore. 2012. “Lessons from the past and charting the future of marine natural products drug discovery and chemical biology.” Chemistry & Biology 19 (1): 85–98. https://doi.org/10.1016/j.chembiol.2011.12.014

It looks like some work as been done in this direction. See this sublime plugin which displays citation in md inline using pandoc. https://github.com/renerocksai/sublime_zk#citation-reference-style

Happy to help you with more details if needed !

Thnaks :)

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.