Skip to content

Commit

Permalink
Merge pull request #268 from marp-team/disable-autolink-with-no-protocol
Browse files Browse the repository at this point in the history
Disable autolink without protocol `http(s)://`
  • Loading branch information
yhatt authored Nov 3, 2021
2 parents 82c5d71 + 18347ec commit 6c3f1f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/marp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ export class Marp extends Marpit {
} as MarpOptions)

this.markdown.enable(['table', 'linkify', 'strikethrough'])
this.markdown.linkify.set({ fuzzyLink: false })

if (mdOpts.typographer)
if (mdOpts.typographer) {
this.markdown.enable(['replacements', 'smartquotes'])
}

// Theme support
this.themeSet.metaType = Object.freeze({
Expand Down
3 changes: 2 additions & 1 deletion v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Changed

- New auto-scaling based on Web Components ([#96](https://github.com/marp-team/marp-core/issues/96), [#248](https://github.com/marp-team/marp-core/issues/248), [#263](https://github.com/marp-team/marp-core/pull/263))
- Web Components based new auto scaling ([#96](https://github.com/marp-team/marp-core/issues/96), [#248](https://github.com/marp-team/marp-core/issues/248), [#263](https://github.com/marp-team/marp-core/pull/263))
- Match color schemes for `default` theme to the latest GitHub ([#266](https://github.com/marp-team/marp-core/issues/266))
- Adopt `::where()` selector to class variants for making styles overridable ([#244](https://github.com/marp-team/marp-core/issues/244), [#267](https://github.com/marp-team/marp-core/pull/267))
- Disable autolink for URL text that has no `http(s)://` protocol ([#268](https://github.com/marp-team/marp-core/pull/268))

0 comments on commit 6c3f1f7

Please sign in to comment.