[pmwiki-users] FAQ Page Layout
John Rankin
john.rankin at affinity.co.nz
Wed Aug 3 20:19:13 CDT 2005
On Thursday, 4 August 2005 12:42 PM, H. Fox <haganfox at gmail.com> wrote:
>On 04 Aug 2005 12:20:21 +1200, John Rankin <john.rankin at affinity.co.nz> wrote:
[snip]
>> Isn't it a case of redefining the classes for p.question and
>q.answer?
>
>I don't think so. Only the first paragraph of an answer gets the
>styling (left-margin, for example). Some parts of an answer (code
>snippets, for example) aren't paragraphs.
>
>[snip] It seems like Pm
>wold rather redefine the Q:/A: markup instead of using div
>markup though...
>
I agree about the 'answer is often a block' comment. A couple
of thoughts:
1. I came across the idea of 'multiparagraph markup' -- example:
A:This is the start of an answer.*
The end of line asterisk says we are starting a new paragraph
but it's still in the same semantic block.*
And this is a third paragraph in the block.
And this is a paragraph in a new semantic block.
This multiparagraph markup construct is quite general. Consider:
* an item *
a paragraph, but still part of the item
* another item *
with another paragraph *
and another one
:a term:its definition *
another paragraph in the definition
and so on...
2. Another option would be:
>>qanda<<
Q: A question
A: Its answer
More answer information
>><<
>From a structural point of view, the question and its answer
are arguably part of the same semantic block.
The second is available now; the first is, I think, fairly
easy to implement, perhaps as a local customisation.
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list