Skip to content

Commit 1d00523

Browse files
isoosJaffaKetchup
andauthored
Allow alert classnames in HTML sanitization. (#3820)
* Allow alert classnames in HTML sanitization. * Updated dartdoc_options.yaml * No -dev in version. * Update CHANGELOG.md Co-authored-by: Luka S <[email protected]> --------- Co-authored-by: Luka S <[email protected]>
1 parent f6f93dd commit 1d00523

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 8.0.12
2+
3+
* Allow `markdown-alert` class names in HTML sanitization. (#3820)
4+
15
## 8.0.11
26

37
* Fix the slash key (`/`) not focusing the search box. (#3810)

dartdoc_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dartdoc:
22
linkToSource:
33
root: '.'
4-
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v8.0.11/%f%#L%l%'
4+
uriTemplate: 'https://github.com/dart-lang/dartdoc/blob/v8.0.12/%f%#L%l%'

lib/src/render/documentation_renderer.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ class DocumentationRenderResult {
7777
}
7878

7979
bool _allowClassName(String className) =>
80-
className == 'deprecated' || className.startsWith('language-');
80+
className == 'deprecated' ||
81+
className.startsWith('language-') ||
82+
className == 'markdown-alert' ||
83+
className.startsWith('markdown-alert-');
8184

8285
Iterable<String> _addLinkRel(String uriString) {
8386
final uri = Uri.tryParse(uriString);

lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
const packageVersion = '8.0.11';
1+
const packageVersion = '8.0.12';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: dartdoc
2-
version: 8.0.11
2+
version: 8.0.12
33
description: A non-interactive HTML documentation generator for Dart source code.
44
repository: https://github.com/dart-lang/dartdoc
55

0 commit comments

Comments
 (0)