@podlite/schema 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.podlite +5 -0
- package/esm/grammar.js +399 -365
- package/esm/grammar.js.map +1 -1
- package/esm/helpers/parseAttributes.d.ts +2 -0
- package/esm/helpers/parseAttributes.js +12 -0
- package/esm/helpers/parseAttributes.js.map +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -1
- package/esm/plugin-formatting-codes.js +10 -23
- package/esm/plugin-formatting-codes.js.map +1 -1
- package/lib/grammar.js +399 -365
- package/lib/helpers/parseAttributes.d.ts +2 -0
- package/lib/helpers/parseAttributes.js +35 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/plugin-formatting-codes.js +10 -23
- package/package.json +2 -2
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.41
|
|
6
|
+
|
|
7
|
+
=item expose C<attributesOnly> as an additional PEG start rule for parsing a stand-alone configuration-info fragment (e.g. C< :line-numbers :caption<Example>>). Reuses the existing C<attributes> grammar rule — no shadow parser
|
|
8
|
+
=item add C<parseAttributes(src)> helper that returns an array of config items from a configuration-info string. Empty or malformed input returns an empty array (graceful degradation per Specification.pod6 §2380-2383). Primary consumer: C<@podlite/markdown> fenced-code-attribute parsing
|
|
9
|
+
|
|
5
10
|
=head1 0.0.40
|
|
6
11
|
|
|
7
12
|
=item recognise the C<header> MIME parameter (RFC 4180 §3) on C<:mime-type> for CSV/TSV C<=data> blocks. When the C<=data> block declares C<:mime-type<'text/csv; header=present'>> (or the same with C<text/tab-separated-values>), C<=table data:X> marks the first row as C<:header>, which renders as C<<th>>/C<<thead>> in HTML and JSX. Default C<absent> preserves the previous behaviour. The MIME-type parser also accepts other parameters (e.g. C<charset>) without disturbing type matching. Spec: podlite-specs#25
|