alpha
Login
or
Join now
ronshavit.com
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Monorepo for Tangled
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
core
/
appview
/
pages
/
markup
/
at
pull-patch-help
1 folder
8 files
Evan Jarrett
appview/pages/markup: fix readme detection for directories and unsupported formats
2mo ago
149bcdd1
extension
appview/pages/markup: add Dashes extension and export NewMarkdownWith Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
4 months ago
camo.go
appview/pages/markup: fix readme detection for directories and unsupported formats - IsReadmeFile now takes (name, mode) and only matches regular file blobs (filemode.Regular/Executable). A directory or symlink named "readme" was being picked up by tree handlers, which then tried to fetch its blob and 503'd. - ReadmePattern matches by convention (^readme(?:[._-].+)?$) rather than a fixed extension set. README.rst, README.org, README-old, etc. now surface on index/tree pages and fall through to FormatText in GetFormat for plaintext rendering. - pages.RepoIndex and pages.RepoTree route through markup.GetFormat instead of hardcoded extension switches, so the markdown extension list lives in one place (FileTypePatterns[FormatMarkdown]). - Added format_test.go covering IsReadmeFile (mode/symlink/dir rejection, the directory regression), FileTypePatterns, and GetFormat. Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
2 months ago
format.go
appview/pages/markup: fix readme detection for directories and unsupported formats - IsReadmeFile now takes (name, mode) and only matches regular file blobs (filemode.Regular/Executable). A directory or symlink named "readme" was being picked up by tree handlers, which then tried to fetch its blob and 503'd. - ReadmePattern matches by convention (^readme(?:[._-].+)?$) rather than a fixed extension set. README.rst, README.org, README-old, etc. now surface on index/tree pages and fall through to FormatText in GetFormat for plaintext rendering. - pages.RepoIndex and pages.RepoTree route through markup.GetFormat instead of hardcoded extension switches, so the markdown extension list lives in one place (FileTypePatterns[FormatMarkdown]). - Added format_test.go covering IsReadmeFile (mode/symlink/dir rejection, the directory regression), FileTypePatterns, and GetFormat. Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
2 months ago
format_test.go
appview/pages/markup: fix readme detection for directories and unsupported formats - IsReadmeFile now takes (name, mode) and only matches regular file blobs (filemode.Regular/Executable). A directory or symlink named "readme" was being picked up by tree handlers, which then tried to fetch its blob and 503'd. - ReadmePattern matches by convention (^readme(?:[._-].+)?$) rather than a fixed extension set. README.rst, README.org, README-old, etc. now surface on index/tree pages and fall through to FormatText in GetFormat for plaintext rendering. - pages.RepoIndex and pages.RepoTree route through markup.GetFormat instead of hardcoded extension switches, so the markdown extension list lives in one place (FileTypePatterns[FormatMarkdown]). - Added format_test.go covering IsReadmeFile (mode/symlink/dir rejection, the directory regression), FileTypePatterns, and GetFormat. Signed-off-by: Evan Jarrett <evan@evanjarrett.com>
2 months ago
markdown.go
appview: don't use camo for non-external readme images Signed-off-by: Seongmin Lee <git@boltless.me>
2 months ago
markdown_test.go
appview/markup: add mermaid diagram rendering support Add MermaidJS diagram rendering for markdown content (READMEs, issues, PRs) using goldmark-mermaid with client-side rendering. Mermaid fenced code blocks are transformed to <pre class="mermaid"> elements, which MermaidJS picks up and renders in the browser. Changes: - Add go.abhg.dev/goldmark/mermaid dependency with client-side render mode - Add mermaid extender before highlighting in goldmark pipeline - Allow "mermaid" class on <pre> elements through bluemonday sanitizer - Conditionally load MermaidJS from CDN only on pages with diagrams - Add basic mermaid container styling with dark mode support - Add tests verifying mermaid blocks produce correct HTML output Closes https://tangled.org/tangled.org/core/issues/424 Signed-off-by: Nate Spilman <nate.spilman@gmail.com> Signed-off-by: Seongmin Lee <git@boltless.me>
4 months ago
reference_link.go
appview: use `#comment-{rkey}` instead of appview-local id Signed-off-by: Seongmin Lee <git@boltless.me>
2 months ago
reference_link_test.go
appview: use `#comment-{rkey}` instead of appview-local id Signed-off-by: Seongmin Lee <git@boltless.me>
2 months ago
sanitizer.go
appview/pipelines: render ANSI sequences uses the terminal-to-html to convert lines with sequences into renderable html. Signed-off-by: oppiliappan <me@oppi.li>
2 months ago