m***@robertwpearce.com
2018-10-02 02:43:15 UTC
I opened a GitHub issue (https://github.com/jaspervdj/hakyll/issues/662)
but am unsure how actively maintained it is over there so thought I'd try
here.
Hi! Thanks for making this project. I'm new to Hakyll and have converted
my blog/website over, but there's one thing preventing me from publishing:
syntax highlighting for a given language seems to use anchor tags within
the code block, itself. Simple steps to reproduce:
1. `$ hakyll-init the-site`
1. `$ cd the-site`
1. `$ stack init`
1. `$ stack build`
1. `$ stack exec site build`
1. `$ vim posts/2015-08-12-spqr.markdown`
1. add the following to the post content:
```
```
const abc = 123
```
```
1. `$ stack exec site watch`
1. `$ open http://localhost:8000/posts/2015-12-07-tu-quoque.html`
1. view the HTML for the code block:
```html
<div class="sourceCode" id="cb1">
<pre class="sourceCode js">
<code class="sourceCode javascript">
<a class="sourceLine" id="cb1-1" data-line-number="1">
<span class="kw">const</span> abc <span class="op">=</span> <span
class="dv">123</span>
</a>
</code>
</pre>
</div>
```
As you can see, an `<a>` tag is created, which doesn't seem like that
should be there? Is that just how pandoc works or something? Wonder what
I'm missing...
Any help would be much appreciated!
but am unsure how actively maintained it is over there so thought I'd try
here.
Hi! Thanks for making this project. I'm new to Hakyll and have converted
my blog/website over, but there's one thing preventing me from publishing:
syntax highlighting for a given language seems to use anchor tags within
the code block, itself. Simple steps to reproduce:
1. `$ hakyll-init the-site`
1. `$ cd the-site`
1. `$ stack init`
1. `$ stack build`
1. `$ stack exec site build`
1. `$ vim posts/2015-08-12-spqr.markdown`
1. add the following to the post content:
```
```
const abc = 123
```
```
1. `$ stack exec site watch`
1. `$ open http://localhost:8000/posts/2015-12-07-tu-quoque.html`
1. view the HTML for the code block:
```html
<div class="sourceCode" id="cb1">
<pre class="sourceCode js">
<code class="sourceCode javascript">
<a class="sourceLine" id="cb1-1" data-line-number="1">
<span class="kw">const</span> abc <span class="op">=</span> <span
class="dv">123</span>
</a>
</code>
</pre>
</div>
```
As you can see, an `<a>` tag is created, which doesn't seem like that
should be there? Is that just how pandoc works or something? Wonder what
I'm missing...
Any help would be much appreciated!
--
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "hakyll" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hakyll+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.