Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

pandoc markdown code blocks #5

Closed
arve0 opened this issue Oct 23, 2015 · 3 comments
Closed

pandoc markdown code blocks #5

arve0 opened this issue Oct 23, 2015 · 3 comments

Comments

@arve0
Copy link

arve0 commented Oct 23, 2015

Hi!
So if one use pandoc, this code:

```js
var int = 0;
```

will render to this HTML:

<pre class="js">
  <code>var int = 0;</code>
</pre>

which means getLanguage(element) will fail.

As I think this is a common setup, would you approve a PR for a getLanguage(element) that also looks into if element got a parent which is <pre> with a language class?

@arve0
Copy link
Author

arve0 commented Oct 23, 2015

Adding, that class would not be prefixed with lang-.

@arve0
Copy link
Author

arve0 commented Oct 23, 2015

I might also look into using metallic before the pandoc plugin..

@arve0
Copy link
Author

arve0 commented Oct 23, 2015

Using metallic resolved my issue.

@arve0 arve0 closed this as completed Oct 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant