Skip to content

Commit a33d0dc

Browse files
committed
👌 markdown-it-deflist make nodes public
1 parent 1308d36 commit a33d0dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/deflist/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn add(md: &mut MarkdownIt) {
2828
}
2929

3030
#[derive(Debug)]
31-
struct DefinitionList;
31+
pub struct DefinitionList;
3232
impl NodeValue for DefinitionList {
3333
fn render(&self, node: &Node, fmt: &mut dyn Renderer) {
3434
fmt.cr();
@@ -42,7 +42,7 @@ impl NodeValue for DefinitionList {
4242
}
4343

4444
#[derive(Debug)]
45-
struct DefinitionTerm;
45+
pub struct DefinitionTerm;
4646
impl NodeValue for DefinitionTerm {
4747
fn render(&self, node: &Node, fmt: &mut dyn Renderer) {
4848
fmt.cr();
@@ -54,7 +54,7 @@ impl NodeValue for DefinitionTerm {
5454
}
5555

5656
#[derive(Debug)]
57-
struct DefinitionDescription;
57+
pub struct DefinitionDescription;
5858
impl NodeValue for DefinitionDescription {
5959
fn render(&self, node: &Node, fmt: &mut dyn Renderer) {
6060
fmt.cr();
@@ -66,7 +66,7 @@ impl NodeValue for DefinitionDescription {
6666
}
6767

6868
/// An extension for the block subparser.
69-
struct DefinitionListScanner;
69+
pub struct DefinitionListScanner;
7070

7171
impl BlockRule for DefinitionListScanner {
7272
fn check(state: &mut BlockState) -> Option<()> {

0 commit comments

Comments
 (0)