Format Codes in Code markup #4216
Replies: 9 comments 2 replies
-
Please do. As it is now, Pod is obscure enough so that we did not not expect doc writers to be too bothered with being super smart with it to know all the shady tricks. So the simpler it is and the more ignorant safety nets are around ("ignorant" as "against the ignorance", not "ignorant checks" :) ), the harder it is to get the mistakes (as people did with the |
Beta Was this translation helpful? Give feedback.
-
Copied over from the prior ticket: These are all potentially problematic at the moment due to |
Beta Was this translation helpful? Give feedback.
-
@cfa ++ for the llst. The only metatab for Looking through the list, I found three metatabs other than
|
Beta Was this translation helpful? Give feedback.
-
I think (not 100% confident) |
Beta Was this translation helpful? Give feedback.
-
See https://github.com/Raku/doc/blob/main/writing-docs/EXAMPLES.md for the tags used by the xt/ test. - there is also :ok-test, and :method; we can rename any of these as long as we update the doc files and the test itself to match. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if First, according to S26 allow is used to insert a non-ASCII character using E<>
Moreover, it is crucial to bear in mind that documentation can be exported to formats other than HTML. In such cases, highlighting particular keywords in examples by B<> or I<> becomes important to ensure that the documentation is clear and easily understandable. |
Beta Was this translation helpful? Give feedback.
-
I have begun to study how to solve the issue of
|
Beta Was this translation helpful? Give feedback.
-
Documenting Since Custom blocks can be inserted, and some come as standard with the
|
Beta Was this translation helpful? Give feedback.
-
This thread relates to RakuDoc version 1 (aka POD6). The revision of RakuDoc changes the context of this discussion. |
Beta Was this translation helpful? Give feedback.
-
There is an issue in
doc-website
that raises more general Rakudoc (aka POD6) questions (see thread from heretl;dr 13 out of 413
Raku/docs/doc
sources use functionality in the first specification of POD6, but undocumented inRaku/docs/doc
. Since it was undocumented, it was not included in theProcessedPod
renderer, but there are 37 instances where there is HTML escaped formating in the new website. The old functionality may interfere with new custom FormatCodes. One proposal is to deprecate the old undocumented function, the other is to respect and document the old spec.Detail
The problem only seems to occur in code blocks, viz Pod::Blocks starting
=for code
or=begin code
The original spec of Rakudoc (aka POD6) can be found in S26 (Synopsis), :allow is specified.
No extra behavior is documented according to Raku/language/pod.
Of the 37 instances in 13 files, the codes allowed are
C B L R
. Personally, I cannot see the extra value they provide.An extension of Rakudoc that is implemented in
ProcessedPod
and not contained inS26
, but reasonably inferred from it, is the ability to defined custom FormatCodes. I believe this extension is valuable because it allows for new span level code and for other languages to use Unicode characters for markup.The
S26
specification of:allow
in=begin code
does not say much about how the code would affect the code, but the ability to extend to new custom codes makes it possible to add new text, such as Fontawesome icons.One idea is to reduce the complexity of rendering
=begin code
by deprecating the underdocumented functionality. A rational for this is that snippets of code should be available for cut and paste, and to work out of the box. Adding extra text or formatting makes these code snippet un-compilable.Another idea is to support and document the original spec.
Any preferences either way?
Beta Was this translation helpful? Give feedback.
All reactions