blob: 122c9407fb2b6137aa945860d3987372a736ee14 [file] [log] [blame]
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import '../block_parser.dart';
import 'block_syntax.dart';
/// Parses inline HTML at the block level. This differs from other Markdown
/// implementations in several ways:
///
/// 1. This one is way way WAY simpler.
/// 2. Essentially no HTML parsing or validation is done. We're a Markdown
/// parser, not an HTML parser!
abstract class BlockHtmlSyntax extends BlockSyntax {
@override
bool canEndBlock(BlockParser parser) => true;
const BlockHtmlSyntax();
}