alpha
Login
or
Join now
tangled.org
/
core
Star
9
Fork
66
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
tangled.org
Star
9
Fork
66
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
16
Pulls
26
Pipelines
core
/
appview
/
pages
/
markup
/
at
f73a82beea33daa6e8a94e32f85a02e8a98f195e
1 folder
8 files
Evan Jarrett
appview/pages/markup: fix readme detection for directories and unsupported formats
5w ago
149bcdd1
extension
appview/pages/markup: add Dashes extension and export NewMarkdownWith Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
3 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>
1 month 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>
1 month 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>
1 month ago
markdown.go
appview: don't use camo for non-external readme images Signed-off-by: Seongmin Lee <git@boltless.me>
1 month 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>
3 months ago
reference_link.go
appview: use `#comment-{rkey}` instead of appview-local id Signed-off-by: Seongmin Lee <git@boltless.me>
1 month ago
reference_link_test.go
appview: use `#comment-{rkey}` instead of appview-local id Signed-off-by: Seongmin Lee <git@boltless.me>
1 month 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>
1 month ago