-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for formatting codes in table cells #17
Comments
It is not supported in Grammar yet. |
@atroxaper could you please provide a sample case? what the pod6 code is and how you wish it to be(after render) |
@W4anD0eR96 here is an example: https://docs.perl6.org/language/variables#Dynamic_variables |
The root of this problem is not in this repo, but that
|
There is a really ugly way to fix it. By convert into @r.push(
'<tbody>',
$node.contents.map(-> $line {
'<tr>',
$line.list.map(-> $cell {
use MONKEY-SEE-NO-EVAL;
my $local-pod = EVAL("=begin pod\n"~$cell ~ "\n=end pod\n\$=pod");
"<td>{node2html($local-pod)}</td>"
}),
'</tr>'
}),
'</tbody>',
'</table>'
); I don't want to apply it at all. |
@tbrowder works on rakudo/rakudo#1240 , that will fix this issue. |
I’m afraid my work will not help this problem. The only thing my PR does, in regards to format codes, is remove in-line Z<> comments. I can think of some other solutions but it will require some help from core devs. UpdateAfter my PR #1240 is merged (if ever), I have proposed a fix for this issue (and volunteered to work on it) on IRC #perl6-dev. So far haven’t received any response, but they are real busy fixing blockers for the next rakudo release. |
Rakudo changes after merge of recent PR #1300 originally by llfourne (made compatible by softmoth) have made formatting codes easier to deal with. This issue should be revisited. I'll try to take it on after I get one other p6 doc project working (Language grouping and sorting). |
As mentioned by TisonKun, the problem is not in this module. Simple test:
should lead to something like
|
But that would be at the Rakudo level, right? That's @tbrowder's turf.
|
Roger. A know problem on my TODO list. |
Is there any change here? |
Not by me, and I'm not sure I'll ever be able to do it. The grammar is very messy in that area and it needs a large refactoring to make it feasible IMHO. In fact, I'm not sure it was ever in the original design because, in S26, it is not mentioned in the section on tables (which are described as a simple object: "Simple tables [emphasis added] can be specified in Pod using a =table block...."). Additionally, Damian (the S26 author) says of formatting codes, "Formatting codes provide a way to add inline mark-up to a piece of text within the contents of (most types of [emphasis added]) Pod block (including all declarator blocks [emphasis added])." [another NYI feature!] |
When this is resolved please ping the referenced Raku/doc ticket so we can consider re-adding the links. |
Going over open issues, is there anything that can be done here? |
Pod formatting codes are either ignored or handled improperly in table cells.
The text was updated successfully, but these errors were encountered: