You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to link to identifiers for fenced code blocks. The input is pandoc markdown, output is a PDF file. The code block identifiers are not being created.
Test markdown to reproduce:
## Fenced Code
## Header with explicit identifier {#myhead}
~~~ {#php-code .php}
class Customergroup extends Data_Form_Element_Multiselect
{
/**
* @return int
*/
public function getValue()
{
$value = $this->getData('value');
if (!is_null($value) && !is_array($value)) {
$value = explode(',', (string)$value);
}
if (empty($value)) {
$value = array(Config::USE_DEFAULT);
}
return $value;
}
}
\~~~
This is a link to the [PHP](#php-code). <== doesn't work
This is a link to the [header](#fenced-php-code). <== works
This is a link to the [sub-head](#myhead). <== works
Please note, I had to break the closing ~~~ by prefixing a backslash, otherwise the github markdown parser would render the next 3 lines as plain html instead of as part of the code block. In the real markdown I'm using that \ is not present.
Here a link to the answer from fiddlosopher for my question on pandoc-discuss as reference:
I'm trying to link to identifiers for fenced code blocks. The input is pandoc markdown, output is a PDF file. The code block identifiers are not being created.
Test markdown to reproduce:
Please note, I had to break the closing
~~~
by prefixing a backslash, otherwise the github markdown parser would render the next 3 lines as plain html instead of as part of the code block. In the real markdown I'm using that\
is not present.Here a link to the answer from fiddlosopher for my question on pandoc-discuss as reference:
https://groups.google.com/d/msg/pandoc-discuss/6_XWo3mkQOU/LYxYWOop_KAJ
I quote:
The text was updated successfully, but these errors were encountered: