Describe the feature
When parsing/rendering markdown that contains images, allow the consumer the ability to transform URLs. It's very common for markdown to contain relative URLs such as /public/images/something.jpg
however it would be very useful be given a callback allowing us to transform this URL and return a new value.
Why is this feature necessary? There are two use cases, the first being why I created this issue, but I am sure others will also have a need for this.
https://www.example.com/public/images/something.jpg
while others are happy to work with /public/images/something.jpg
.If Marked allows for URLs to be transformed these two use cases would be solved.
Describe alternatives you've considered
Marked version: 4.2.12 (noticed on 4.0.10, tried upgrading to see if it helps)
Describe the bug Invisible non-breaking space characters, like in this block right here, (inline as code and content)
## h2
### h3
[link](destination)
### anotherh3
## h2 ### h3 link ### anotherh3
are not always treated as whitespace, so things like headers, tables, etc don't get formatted and are left as markdown syntax.
To Reproduce Steps to reproduce the behavior:
marked will create headers for the first few elements but then stop. adding extra newlines OR replacing the nonbreaking space characters seems to fix it?
commonmark doesn't create them at all, you have to replace the nonbreaking spaces
DaringFireball's site seems to do "best", the headers are properly replaced AND the nonbreaking space stays intact?
Expected behavior Best, I'd expect all the headers to be generated, keeping the nonbreaking space intact and without extra newlines/spacing (we're moving from one platform to another and have a ton of existing and customer markdown content that we don't control and can't convert).
Marked version: 4.x Ancient code on marked 0.7.0 seems to handle this better
Describe the bug A table with mismatched headers and rows won't render:
| One header |
|:------------- |:-------------|:-----|
| row | has | 3 cols |
We have a site using an ancient verison of marked, ~0.7.0, where this works in a strange way, which generates this:
<table>
<thead>
<tr>
<th style="text-align: left;">One header</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">row</td>
<td style="text-align: left;">has</td>
<td style="text-align: left;">3 cols</td>
</tr>
</tbody>
</table>
To Reproduce Steps to reproduce the behavior:
|
to the first line to have matching number of columns, the table will start workingExpected behavior The ancient behavior of creating a table with a partial header was much more forgiving. In this case, the second header line specifying the alignment is correct and i'd expect that to be the thing that "wins".
Marked version: master
Describe the bug
To Reproduce
Expected behavior Chinese colon be parsed fine.
Duplicate of #2531
chore(deps-dev): Bump semantic-release from 20.1.3 to 21.0.0 (#228)
Bumps semantic-release from 20.1.3 to 21.0.0.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps semantic-release from 20.1.3 to 21.0.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)chore(deps-dev): Bump rollup from 3.20.0 to 3.20.2 (#2764)
Bumps rollup from 3.20.0 to 3.20.2.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps rollup from 3.20.0 to 3.20.2.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)chore(deps-dev): Bump semantic-release from 20.1.3 to 21.0.0 (#2762)
Bumps semantic-release from 20.1.3 to 21.0.0.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps semantic-release from 20.1.3 to 21.0.0.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)chore(deps-dev): bump underscore from 1.13.2 to 1.13.3
Bumps underscore from 1.13.2 to 1.13.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Merge pull request #207 from coffeelint/dependabot/npm_and_yarn/underscore-1.13.3
chore(deps-dev): bump underscore from 1.13.2 to 1.13.3
fix(deps): bump coffeescript from 2.6.1 to 2.7.0 (#206)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(deps): bump glob from 8.0.1 to 8.0.3 (#209)
Bumps glob from 8.0.1 to 8.0.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix(deps): bump yargs from 17.4.1 to 17.5.1 (#208)
Bumps yargs from 17.4.1 to 17.5.1.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump npm from 8.4.0 to 8.12.0 (#210)
Bumps npm from 8.4.0 to 8.12.0.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump semver-regex from 3.1.3 to 3.1.4 (#211)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps-dev): bump underscore from 1.13.3 to 1.13.4
Bumps underscore from 1.13.3 to 1.13.4.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Merge pull request #212 from coffeelint/dependabot/npm_and_yarn/underscore-1.13.4
chore(deps-dev): bump underscore from 1.13.3 to 1.13.4
chore(deps-dev): bump semantic-release from 19.0.2 to 19.0.3
Bumps semantic-release from 19.0.2 to 19.0.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Merge pull request #213 from coffeelint/dependabot/npm_and_yarn/semantic-release-19.0.3
chore(deps-dev): bump semantic-release from 19.0.2 to 19.0.3
chore(deps): bump resolve from 1.22.0 to 1.22.1 (#214)
Bumps resolve from 1.22.0 to 1.22.1.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps-dev): bump @semantic-release/github from 8.0.4 to 8.0.5
Bumps @semantic-release/github from 8.0.4 to 8.0.5.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Merge pull request #215 from coffeelint/dependabot/npm_and_yarn/semantic-release/github-8.0.5
chore(deps-dev): bump @semantic-release/github from 8.0.4 to 8.0.5
chore(deps-dev): bump semantic-release from 19.0.3 to 19.0.5
Bumps semantic-release from 19.0.3 to 19.0.5.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
chore(deps-dev): bump @semantic-release/github from 8.0.5 to 8.0.6
Bumps @semantic-release/github from 8.0.5 to 8.0.6.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com
Merge pull request #217 from coffeelint/dependabot/npm_and_yarn/semantic-release-19.0.5
chore(deps-dev): bump semantic-release from 19.0.3 to 19.0.5
add type definition (#286)
I haven't used vite but I wonder if it is using the umd script. The umd script adds window.markedEmoji
as a global variable. see if that works.
If you could create a repo where I could reproduce this I could help debug it.
See https://github.com/express-handlebars/express-handlebars#extnamehandlebars
I think 'handlebars'
needs to change to '.hbs'
Looks like you are using v3.0.0 toSVG
was added in v4.1.0
@kdekooter feel free to open a new issue if you believe this is still an issue.
Bumps @semantic-release/changelog from 6.0.2 to 6.0.3.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)chore(deps-dev): Bump @semantic-release/changelog from 6.0.2 to 6.0.3 (#227)
Bumps @semantic-release/changelog from 6.0.2 to 6.0.3.
updated-dependencies:
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
It works for me. Can you give more details about what isn't working?
fix(deps): update dependency graceful-fs to ^4.2.11 (#531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| graceful-fs | ^4.2.10
-> ^4.2.11
| |
|
|
|
v4.2.11
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.
fix(deps): update dependency glob to ^9.3.2 (#526)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>