Skip to content

With language-css, # shouldn't be treated as a comment #1484

Closed
@kwalrath

Description

@kwalrath

This might be obsolete, but in case it isn't... I've been experimenting with the angular_components docs, among other things specifying the language in code blocks, like this:

/// ```css
/// /* Make #myButton green with yellow text */
/// #myButton {
///   background: green;
///   color: yellow;
/// }
/// ```

GitHub styles that reasonably:

/* Make #myButton green with yellow text */
#myButton {
  background: green;
  color: yellow;
}

Unfortunately, dartdoc treats the # as the start of a comment:
image

I'm using 1.24.

$ dart --version
Dart VM version: 1.24.0 (Mon Jun 12 08:22:15 2017) on "macos_x64"
$ dartdoc --version
dartdoc version: 0.9.14-dev

Related to dart-lang/site-www#345.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work oncustomer-google3Issues originating from or important to Angular

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions