#30473 closed defect (bug) (fixed)
Inline Docs: Remove invalid markup from DocBlocks
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.1 | Priority: | high |
Severity: | normal | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Background: Core documentation has been parsed into the new Code Reference for a couple of releases now. As such, there are quite a few cases where HTML markup located in various places in DocBlocks is wreaking havoc on how that content displayed via WordPress.
The primary goal of this ticket is to fix as many of these cases as possible prior to the 4.1 release when the code base be parsed into the Code Reference for the new version.
Attachments (2)
Change History (27)
#14
@
10 years ago
- Resolution set to fixed
- Status changed from assigned to closed
Let's call this fixed for 4.1. Nice work Rarst!
#15
follow-up:
↓ 16
@
10 years ago
It's good work, but there's still some inconsistencies. Even in r30543 alone, there's instances of:
- li element
- 'a' element
<a>
element.
The top one doesn't have any delimiter (wrong), and the second does, but it isn't backticks so the end result isn't parsed marked up as <code>
. The last one is the most correct - the doc standard needs to clarify if the instance of a tag needs to have angle brackets within the backticks or not, and then apply that consistently.
#16
in reply to:
↑ 15
;
follow-up:
↓ 17
@
10 years ago
Replying to GaryJ:
The top one doesn't have any delimiter (wrong), and the second does, but it isn't backticks so the end result isn't parsed marked up as
<code>
. The last one is the most correct - the doc standard needs to clarify if the instance of a tag needs to have angle brackets within the backticks or not, and then apply that consistently.
- First one is not wrong, it's what formatting guidelines currently say to do in summaries.
- Second one is tad special case since it would be too easily confused as English article otherwise.
- The third case is used in descriptions, which (unlike summaries) currently allow markdown. Please point out if you see otherwise anywhere.
#17
in reply to:
↑ 16
@
10 years ago
Bad wording on my part - I didn't mean your patch was out and out wrong - just that the formatting guidelines in the current docs standard has some unfortunate inconsistencies. The fact that the special case example 2 exists highlights that either 1 should match, or 2 should be changed to:
- anchor element
and that point 1 may therefore be better read as:
- list item element
The formatting guidelines is ambiguous as to how abbreviated element names should be handled as it only covers the trivial link
example. How the consistency should resolved is up to the Docs team to decide, hence the reason I didn't write a patch.
props rarst