diff --git a/doc/api/n-api.md b/doc/api/n-api.md
index bc2737b564671d..40bb604d655d83 100644
--- a/doc/api/n-api.md
+++ b/doc/api/n-api.md
@@ -161,7 +161,7 @@ to recompile for new versions of Node.js which are
 listed as supporting a later version.
 
 |       | 1       | 2        | 3        | 4        | 5         |
-|:-----:|:-------:|:--------:|:--------:|:--------:|:---------:|
+|-------|---------|----------|----------|----------|-----------|
 | v6.x  |         |          | v6.14.2* |          |           |
 | v8.x  | v8.0.0* | v8.10.0* | v8.11.2  | v8.16.0  |           |
 | v9.x  | v9.0.0* | v9.3.0*  | v9.11.0* |          |           |
diff --git a/doc/api/url.md b/doc/api/url.md
index a65cb2a6786053..6cb82c71676e3a 100644
--- a/doc/api/url.md
+++ b/doc/api/url.md
@@ -316,7 +316,7 @@ The port value can be an empty string in which case the port depends on
 the protocol/scheme:
 
 | protocol | port |
-| :------- | :--- |
+| -------- | ---- |
 | "ftp"    | 21   |
 | "file"   |      |
 | "gopher" | 70   |