Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not format bold / italic / links in declarator blocks #27

Open
stuart-little opened this issue Jun 15, 2021 · 1 comment
Open

does not format bold / italic / links in declarator blocks #27

stuart-little opened this issue Jun 15, 2021 · 1 comment

Comments

@stuart-little
Copy link

stuart-little commented Jun 15, 2021

raku --doc=Markdown on a file containing a declarator block renders any B<whatever> therein as-such, as opposed to the expected **whatever**.

Here's an example. Take, say

#!/usr/bin/env raku
use v6;

#| B<boo>
sub f($x) {1}
#= I<hoo>

If I run raku --doc=Markdown on that file I get

### sub f

```raku
sub f(
    $x
) returns Mu
```
B<boo>
I<hoo>

By contrast, B<boo> renders fine as **boo** inside a =head1 for instance, or between =begin/end pod markers, etc.

PS
I am not sure whether this is related, but it too is about declarator blocks.

@stuart-little
Copy link
Author

Actually, I see Pod::To::HTML doesn't handle this either.. Take

#!/usr/bin/env raku
use v6;

#| B<BEFORE>
sub f($x) {1}
#= I<AFTER>

=begin pod
B<IN-POD>
=end pod

If I run raku --doc=HTML on it, somwehre towards the end of the html document I see

<div class="pod-body no-toc">
   <span class="pod-block-notimplemented">B&lt;BEFORE&gt;
I&lt;AFTER&gt;</span><section name="___top"><p><strong>IN-POD</strong></p>
                </section>
        </div>

so IN-POD is rendered as strong, but BEFORE and AFTER are not (and receive the eloquently-named class pod-block-notimplemented :)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant