0
Commit Graph

5 Commits

Author SHA1 Message Date
Peter Kasting
3f58d92bdc Update md_browser to work with python-markdown v3.
Perhaps no one has tried to use this tool in a long time? In any case,
it wasn't working for me locally on Windows; this fixes it.

Bug: none
Change-Id: Iee762a62e7c1e4998c3dcc0fd6ca7d20ede664f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4114622
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1084509}
2022-12-16 21:07:11 +00:00
Avi Drissman
dfd8808526 Update copyright headers in testing/, tools/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c95.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I3a8a7b150e7bd64690534727150646081df50439
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3900697
Reviewed-by: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Owners-Override: Avi Drissman <avi@chromium.org>
Commit-Queue: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047644}
2022-09-15 20:11:09 +00:00
Yu-Ping Wu
4f924c90ad md_browser: Migrate to Python3
With Python-Markdown upgraded to 3.3.4, update the usage and migrate to
Python3. Python3.6+ is supported, and Python2 is no longer supported.

BUG=chromium:1224332
TEST=python3 md_browser.py -d /mnt/host/source/docs/

Change-Id: I61c762e9d7b46b63e8a050fda6858f5032be76b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3301132
Commit-Queue: Yu-Ping Wu <yupingso@chromium.org>
Auto-Submit: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Cr-Commit-Position: refs/heads/main@{#946862}
2021-12-01 04:33:21 +00:00
Nate Fischer
0cc74af56e Better regex for md_browser.py
This improves the autolinkifier regex used by md_browser.py. The old
regex would linkify URLs until the end of the line, rather than the
correct behavior of linkifying only until the end of the URL.

This also drops support for non-lowercase spellings of "HTTP", since it
seems the gitiles implementation (linked in a code comment) doesn't seem
to support that anyway.

Lastly, this updates the code comment to the new path for the gitiles
parser code.

Bug: 968865
Test: tools/md_browser/md_browser.py android_webview/docs/README.md
Test: tools/md_browser/md_browser.py android_webview/docs/quick-start.md
Test: tools/md_browser/md_browser.py android_webview/docs/webview-shell.md
Test: tools/md_browser/md_browser.py android_webview/docs/test-instructions.md
Test: On all the above, observe all autolinks work as intended
Change-Id: I1b5c6b2496ef64b1da2aa00d11b340c40761c3f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1638123
Commit-Queue: Nate Fischer <ntfschr@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#665380}
2019-06-01 01:07:33 +00:00
vapier
fceea8e4ed support gitiles auto-linking
The gitiles renderer doesn't require URLs to be bracketed with <...>.
Add an extension to support that.

R=dpranke@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2743553002
Cr-Commit-Position: refs/heads/master@{#455683}
2017-03-09 07:05:13 +00:00