Skip to content

Conversation

@LoboMetalurgico
Copy link
Member

No description provided.

rlidwka and others added 30 commits July 7, 2020 17:48
```
>>> foo
> bar
>>> baz
```

this is now a single blockquote as per spec

close #696
 - table now doesn't deal with backticks at all
 - `|` is considered escaped if and only if there is a `\` character immediately before it
 - number of elements in the first row (thead) now must match second row (aligns) exactly
 - no tbody if it would be empty

close #689
close #697
    ``` javascript {line-numbers=5 highlight=14-17}
    test
    ```

This markup now calls `highlight` like this:

    require('markdown-it')({
      highlight(code, lang, attrs) {
        assert(code === 'test')
        assert(lang === 'javascript')
        assert(attrs === '{line-numbers=5 highlight=14-17}')
      }
    })

close #626
close #706
 - `table`, `tbody`, `tr` now have mapping
 - `th`, `td`, `inline` in tables do not have it

close #705
this is now just raw text:

```md
|
|
|
```

close #724
puzrin and others added 30 commits December 2, 2023 00:02
Spec is not clear on how to handle this. Three variations exist:

```
$ echo '![text <textarea> text](image.png)' | /home/user/commonmark.js/bin/commonmark
<p><img src="image.png" alt="text <textarea> text" /></p>

$ echo '![text <textarea> text](image.png)' | /home/user/cmark/build/src/cmark
<p><img src="image.png" alt="text &lt;textarea&gt; text" /></p>

$ echo '![text <textarea> text](image.png)' | /home/user/.local/bin/commonmark
<p><img src="image.png" alt="text  text" /></p>
```

Prior to this commit:
 - when HTML tags are enabled, tags were removed (as in Haskell version)
 - when HTML tags are disabled, tags were escaped (as in C version)

After this commit:
 - tags will be escaped (as in C version) regardless of HTML flag

+ render hardbreaks as newlines, same as cmark
* docs: replace `.js` with `.mjs` in links to files

* docs: replace `.js` with `.mjs` in links to files
The spec update changes these things:

* It simplifies the HTML regex so that `<!-- a -- b -->` is an HTML
  comment. HTML5 reports this as an error, but still parses it.
* It changes the set of known HTML block elements to match HTML5, adding
  `search` and removing `source`.
* It adds Unicode Symbols to the set of punctuation characters that are
  used to evaluate flankingness.

This commit also changes the declaration HTML regex to match lowercase,
even though that change was technically made in spec version 0.30.
* Add text_decoration tutorial doc

* Add post-processing rule tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.